panda 1 yıl önce
ebeveyn
işleme
5819a25fcf

+ 2 - 1
application/api/controller/Passport.php

@@ -116,7 +116,8 @@ class Passport extends Api
         $order_no = !empty($order_no) ? $order_no : time() . rand(1, 200);
         $order_no = !empty($order_no) ? $order_no : time() . rand(1, 200);
 
 
         $pay = new PayUtil();
         $pay = new PayUtil();
-        if (!$pay->jsPay($openid, "D0{$order_no}", '0.01', '开通会员')){
+        $notify_url = 'http://www.zhiyinvip001.com/api/passport/pay_notify';
+        if (!$pay->jsPay($openid, "D0{$order_no}", '0.01', '开通会员', $notify_url)){
             $this->error($pay->getMessage());
             $this->error($pay->getMessage());
         }
         }
 
 

+ 1 - 1
application/utils/PayUtil.php

@@ -36,7 +36,7 @@ class PayUtil
                 'sub_appid' => $this->config['sub_appid'],
                 'sub_appid' => $this->config['sub_appid'],
                 'sub_openid' => $openid,
                 'sub_openid' => $openid,
             ],
             ],
-            'notify_url' => 'http://www.zhiyinvip001.com/api/passport/pay_notify'
+            'notify_url' => $notify_url
         ];
         ];
 //        ksort($post_data);
 //        ksort($post_data);
         $data = [
         $data = [