Przeglądaj źródła

fix(admin): 修复用户提现拒绝后余额计算错误

- 修正了提现拒绝时余额计算逻辑,移除重复添加的提现金额
- 确保余额字段只保存当前提现限制值,避免金额累积错误
shichen 3 miesięcy temu
rodzic
commit
6e25580e96
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app/controller/admin/user/UserExtract.php

+ 2 - 2
app/controller/admin/user/UserExtract.php

@@ -262,7 +262,7 @@ class UserExtract extends BaseController
262 262
                 Db::name('entropy_barter_user_' . $extract_data['mer_id'])->where('eb_id', $eb_bill['to_id'])->inc('wallet', $extract_data['extract_price'])->update();
263 263
             }
264 264
 
265
-            // 拒绝提现要退回佣金和提现额度
265
+            // 拒绝提现要退回提现额度
266 266
             if ($extract_data['withdrawal_type'] == 3) {
267 267
                 // 提现额度
268 268
                 Db::name('user')->where('uid',$extract_data['uid'])->inc('withdrawal_limit',$extract_data['extract_price'])->save();
@@ -274,7 +274,7 @@ class UserExtract extends BaseController
274 274
                     'user_id' => $extract_data['uid'],
275 275
                     'pm' => UserWithdrawalLimitRecordEnum::PM['INCOME']['code'],
276 276
                     'number' => $extract_data['extract_price'],
277
-                    'balance' => $userEntity->withdrawalLimit + $extract_data['extract_price'],
277
+                    'balance' => $userEntity->withdrawalLimit,
278 278
                     'type_shop' => -1,
279 279
                     'order_sn' => '',
280 280
                     'remark' => '提现拒绝增加提现额度'