浏览代码

充值到账

lizhen_gitee 3 年之前
父节点
当前提交
ca0d849650
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      application/api/controller/Pay.php

+ 3 - 3
application/api/controller/Pay.php

@@ -89,11 +89,11 @@ class Pay extends Api
             'orderid'      => $pay_no,
             'title'        => $data['memo'],
             'amount'       => $data['money'],
-            //'amount'       => 0.01,
+            'amount'       => 0.01,
             //'method'       => 'miniapp',
             'method'       => 'app',
             //'openid'       => $openid,
-            'notifyurl' => $this->request->root(true) . '/notify.php/paytype/alipay',
+            'notifyurl' => $this->request->root(true) . '/notify.php/paytype/'.$pay_type,
             'returnurl' => '',
         ];
         $res = Service::submitOrder($params);
@@ -198,7 +198,7 @@ class Pay extends Api
             'amount'       => $data['money'],
             'amount'       => 0.01,
             'method'       => 'app',
-            'notifyurl' => $this->request->root(true) . '/notify.php/paytype/alipay',
+            'notifyurl' => $this->request->root(true) . '/notify.php/paytype/'.$pay_type,
             'returnurl' => '',
         ];
         $res = Service::submitOrder($params);