Explorar o código

fix(user): 修复提现额度记录数据变量名错误

- 修正了用户提现额度记录中的变量名错误,将$data改为$recordData
- 确保正确的数据结构被插入到用户提现额度记录表中
- 避免因变量名错误导致的数据插入失败问题
shichen hai 3 meses
pai
achega
03bdfa4cce
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/common/repositories/user/UserExtractRepository.php

+ 2 - 2
app/common/repositories/user/UserExtractRepository.php

@@ -364,7 +364,7 @@ class UserExtractRepository extends BaseRepository
364 364
                     $user->brokerage_price = $brokerage_price;
365 365
                     // 减少提现额度
366 366
                     $user->withdrawal_limit = bcsub($user['withdrawal_limit'],$data['extract_price'],2);
367
-                    $data = [
367
+                    $recordData = [
368 368
                         'user_id' => $user->uid,
369 369
                         'pm' => UserWithdrawalLimitRecordEnum::PM['EXPEND']['code'],
370 370
                         'number' => $data['extract_price'],
@@ -373,7 +373,7 @@ class UserExtractRepository extends BaseRepository
373 373
                         'order_sn' => '',
374 374
                         'remark' => '申请提现扣减提现额度'
375 375
                     ];
376
-                    Db::name('user_withdrawal_limit_records')->insert($data);
376
+                    Db::name('user_withdrawal_limit_records')->insert($recordData);
377 377
                 }else if ($type == 2) {
378 378
                     $brokerage_price = bcsub($user['member_brokerage_price'],$data['extract_price'],2);
379 379
                     $user->member_brokerage_price = $brokerage_price;