This commit is contained in:
devil_gong 2019-07-12 20:29:34 +08:00
parent 07146c6388
commit f2effc585b
2 changed files with 5 additions and 5 deletions

View File

@ -358,7 +358,7 @@ class OrderService
// 支付数据校验
$pay_name = 'payment\\'.PAYMENT_TYPE;
$ret = (new $pay_name($payment[0]['config']))->Respond(array_merge($_GET, $_POST));
$ret = (new $pay_name($payment[0]['config']))->Respond($params);
if(!isset($ret['code']) || $ret['code'] != 0)
{
return $ret;

View File

@ -205,24 +205,24 @@ class MafubaoWeixin
{
switch($params['status'])
{
// 成功
// 未支付
case 0 :
$ret = DataReturn('未支付', -100);
break;
// 失败
// 成功
case 1 :
$ret = DataReturn('支付成功', 0, $this->ReturnData($params));
break;
// 参数有误
// 支付超时
case 2 :
case 3 :
case 6 :
$ret = DataReturn('支付超时', -1001);
break;
// 参数有误
// 支付成功,通知失败
case 4 :
case 5 :
$ret = DataReturn('支付成功,通知失败', -1002);