多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
``` public function wx_pay($attach){ require_once "../extend/WxPay/lib/WxPay.Api.php"; require_once "../extend/WxPay/example/WxPay.NativePay.php"; $notify = new \NativePay(); $input = new \WxPayUnifiedOrder(); $input->SetBody("卡密"); $input->SetOut_trade_no($attach['order_id']); $input->SetTotal_fee($attach['fee']*100); $input->SetTime_start(date("YmdHis")); $input->SetTime_expire(date("YmdHis", time() + 3600)); $input->SetNotify_url("http://test.qingdabao.com/pay/notify_url"); $input->SetTrade_type("NATIVE"); $input->SetProduct_id($attach['goods_id']); $result = $notify->GetPayUrl($input); $url = $result["code_url"]; $shops=new Shops(); $url=$shops->wx_code($url); return $url; } ```