From 402432082d86b94e69a7b20049cbf7f4f5c4ec25 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Tue, 14 May 2024 17:54:48 +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 | 2 +- app/common/model/user/BalanceLog.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/api/service/recharge/PaySuccess.php b/app/api/service/recharge/PaySuccess.php index f11052df..d9dc402f 100644 --- a/app/api/service/recharge/PaySuccess.php +++ b/app/api/service/recharge/PaySuccess.php @@ -193,7 +193,7 @@ class PaySuccess extends BaseService 'user_id' => $orderInfo['user_id'], 'money' => $orderInfo['actual_money'], 'store_id' => $this->getStoreId(), - ], ['order_no' => $orderInfo['order_no']]); + ], ['order_no' => $orderInfo['order_no']],$orderInfo['store_id']); // 将第三方交易记录更新为已支付状态 if (in_array($this->method, [PaymentMethodEnum::WECHAT, PaymentMethodEnum::ALIPAY])) { $this->updateTradeRecord(); diff --git a/app/common/model/user/BalanceLog.php b/app/common/model/user/BalanceLog.php index 61c1143b..a963813a 100644 --- a/app/common/model/user/BalanceLog.php +++ b/app/common/model/user/BalanceLog.php @@ -52,10 +52,6 @@ class BalanceLog extends BaseModel public static function add(int $scene, array $data, array $describeParam, ?int $storeId = null) { $model = new static; - if($scene==10){ - $REmodel = OrderModel::getPayDetail((string)$data['order_no']); - $storeId = 12312; - } $model->save(array_merge([ 'scene' => $scene, 'describe' => vsprintf(SceneEnum::data()[$scene]['describe'], $describeParam),