es
yangsai@163.com 7 months ago
parent 17f0da4aa3
commit 402432082d
  1. 2
      app/api/service/recharge/PaySuccess.php
  2. 4
      app/common/model/user/BalanceLog.php

@ -193,7 +193,7 @@ class PaySuccess extends BaseService
'user_id' => $orderInfo['user_id'], 'user_id' => $orderInfo['user_id'],
'money' => $orderInfo['actual_money'], 'money' => $orderInfo['actual_money'],
'store_id' => $this->getStoreId(), '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])) { if (in_array($this->method, [PaymentMethodEnum::WECHAT, PaymentMethodEnum::ALIPAY])) {
$this->updateTradeRecord(); $this->updateTradeRecord();

@ -52,10 +52,6 @@ class BalanceLog extends BaseModel
public static function add(int $scene, array $data, array $describeParam, ?int $storeId = null) public static function add(int $scene, array $data, array $describeParam, ?int $storeId = null)
{ {
$model = new static; $model = new static;
if($scene==10){
$REmodel = OrderModel::getPayDetail((string)$data['order_no']);
$storeId = 12312;
}
$model->save(array_merge([ $model->save(array_merge([
'scene' => $scene, 'scene' => $scene,
'describe' => vsprintf(SceneEnum::data()[$scene]['describe'], $describeParam), 'describe' => vsprintf(SceneEnum::data()[$scene]['describe'], $describeParam),

Loading…
Cancel
Save