修改支付控制器中$attach的获取方式,从extend_params中获取。

This commit is contained in:
mkm 2024-05-25 15:40:15 +08:00
parent c90fc585e4
commit fa6756a9c9

View File

@ -70,7 +70,7 @@ class PayController extends BaseApiController
if ($result) {
$data = $result->toArray();
if ($data['trade_status'] === 'TRADE_SUCCESS') {
$attach = $data['attach'];
$attach = $data['extend_params']['attach']??'';
switch ($attach) {
case 'alipay_cashier':
PayNotifyLogic::handle('alipay_cashier', $data['out_trade_no'], $data);
@ -92,7 +92,7 @@ class PayController extends BaseApiController
if ($result) {
$data = $result->toArray();
if ($data['trade_status'] === 'TRADE_SUCCESS') {
$attach = $data['attach'];
$attach = $data['extend_params']['attach']??'';
switch ($attach) {
case 'alipay_cashier':
PayNotifyLogic::handle('alipay_cashier', $data['out_trade_no'], $data);