mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-01 03:18:33 +08:00
pay
This commit is contained in:
parent
07146c6388
commit
f2effc585b
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user