panda 1 年間 前
コミット
5819a25fcf
2 ファイル変更3 行追加2 行削除
  1. 2 1
      application/api/controller/Passport.php
  2. 1 1
      application/utils/PayUtil.php

+ 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);
 
         $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());
         }
 

+ 1 - 1
application/utils/PayUtil.php

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