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