|
@@ -49,7 +49,7 @@ class Money extends Common
|
|
|
$type = $this->request->request("type", "wechat");
|
|
|
$method = $this->request->request("method", "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);
|