瀏覽代碼

充值调整

zhangxiaobin 1 年之前
父節點
當前提交
4adcd970bc
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      application/api/controller/Money.php

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

@@ -49,7 +49,7 @@ class Money extends Common
         $type = $this->request->request("type", "wechat");// 充值类型:wechat:微信支付,alipay:支付宝支付
         $method = $this->request->request("method", "miniapp");// 支付方式:app:app支付,miniapp:小程序支付
         $openid = $this->request->request("openid", "");// 非小程序支付无需传值
-        $params_from = $this->request->request("params_from");// 平台参数
+        $params_from = $this->request->request("params_from",2);// 平台参数
         $amounts = $this->request->request("amounts",0);// 自定义金额
         if (!$rechar_id && empty($amounts)) {
             $this->error(__('Invalid parameters'));
@@ -123,6 +123,7 @@ class Money extends Common
             'openid'    => $openid,
             'notifyurl' => $notifyurl,
             'returnurl' => $returnurl,
+            'params_from' => $params_from,
         ];
 
         $result = Service::submitOrder($params);