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),