From 7eb03c75c7b3fc0f8894cc0817ceebf484249b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Fri, 2 Feb 2024 09:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E6=9F=9A=E9=9D=99=E6=80=81=20?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/controller/Alipay.php | 2 +- app/common/controller/Wxpay.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/controller/Alipay.php b/app/common/controller/Alipay.php index 7435a87..df894ea 100644 --- a/app/common/controller/Alipay.php +++ b/app/common/controller/Alipay.php @@ -146,7 +146,7 @@ class Alipay { $update_data['TradeNo'] = $alipay_no; $update_data['OrderState'] = 90; if($order_model->updateOne(['OrderNo'=>$order_no],$update_data)) { - $account_info = json_decode($order_info['remark2']); + $account_info = json_decode($order_info['remark2'],true); $user_model = new UserModel(); $user_info = $user_model->getOne(['Id' => $order_info['UserId']]); diff --git a/app/common/controller/Wxpay.php b/app/common/controller/Wxpay.php index 253ce16..325f07e 100644 --- a/app/common/controller/Wxpay.php +++ b/app/common/controller/Wxpay.php @@ -129,7 +129,7 @@ class Wxpay { $update_data['OrderState'] = 90; $order_model->updateOne(['OrderNo'=>$order_no],$update_data); - $account_info = json_decode($order_info['remark2']); + $account_info = json_decode($order_info['remark2'],true); $user_model = new UserModel(); $user_info = $user_model->getOne(['Id' => $order_info['UserId']]);