From fa6756a9c9c3058c1f0c13abb629d1216925cee6 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 25 May 2024 15:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=AF=E4=BB=98=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=E5=99=A8=E4=B8=AD$attach=E7=9A=84=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=EF=BC=8C=E4=BB=8Eextend=5Fparams=E4=B8=AD?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/PayController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/PayController.php b/app/api/controller/PayController.php index 1422a10..715cb05 100644 --- a/app/api/controller/PayController.php +++ b/app/api/controller/PayController.php @@ -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);