From 78fc830663c98832aa34a8716f948ccc0348c1c5 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Tue, 14 May 2024 17:59:52 +0800 Subject: [PATCH] =?UTF-8?q?YS:=E5=85=85=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/service/recharge/PaySuccess.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/service/recharge/PaySuccess.php b/app/api/service/recharge/PaySuccess.php index d9dc402f..6b8a81ef 100644 --- a/app/api/service/recharge/PaySuccess.php +++ b/app/api/service/recharge/PaySuccess.php @@ -192,8 +192,8 @@ class PaySuccess extends BaseService BalanceLogModel::add(SceneEnum::RECHARGE, [ 'user_id' => $orderInfo['user_id'], 'money' => $orderInfo['actual_money'], - 'store_id' => $this->getStoreId(), - ], ['order_no' => $orderInfo['order_no']],$orderInfo['store_id']); + 'store_id' => empty($orderInfo['store_id'])?$this->getStoreId():empty($orderInfo['store_id']), + ], ['order_no' => $orderInfo['order_no']]); // 将第三方交易记录更新为已支付状态 if (in_array($this->method, [PaymentMethodEnum::WECHAT, PaymentMethodEnum::ALIPAY])) { $this->updateTradeRecord();