feat(PayController): 修改支付回调逻辑,增加错误日志记录
This commit is contained in:
parent
de313f1bed
commit
98e93b0f69
@ -38,10 +38,12 @@ class PayController extends BaseApiController
|
||||
$app->wechat->success();
|
||||
break;
|
||||
case 'wechat_common':
|
||||
default:
|
||||
PayNotifyLogic::handle('wechat_common', $ciphertext['out_trade_no'], $ciphertext);
|
||||
$app->wechat->success();
|
||||
break;
|
||||
default:
|
||||
Log::error('支付回调失败,订单号:' . $ciphertext['out_trade_no'], $ciphertext);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -90,8 +92,7 @@ class PayController extends BaseApiController
|
||||
$app->wechat->success();
|
||||
break;
|
||||
default:
|
||||
PayNotifyLogic::handle('wechat_common', $res['out_trade_no'], $res);
|
||||
$app->wechat->success();
|
||||
Log::error('支付回调失败,订单号:' . $res['out_trade_no'], $res);
|
||||
break;
|
||||
}
|
||||
return $this->success('支付成功');
|
||||
|
Loading…
x
Reference in New Issue
Block a user