ソースを参照

fix(user): 修复用户提现额度记录创建问题

- 将数据库操作方法从 create 改为 insert 以正确插入提现额度记录
- 确保申请提现时能够正确扣减用户提现额度
- 修复由于方法使用不当导致的数据写入失败问题
shichen 3 ヶ月 前
コミット
b901a2dbf8
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      app/common/repositories/user/UserExtractRepository.php

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

@@ -372,7 +372,7 @@ class UserExtractRepository extends BaseRepository
372 372
                         'order_sn' => '',
373 373
                         'remark' => '申请提现扣减提现额度'
374 374
                     ];
375
-                    Db::name('user_withdrawal_limit_records')->create($data);
375
+                    Db::name('user_withdrawal_limit_records')->insert($data);
376 376
                 }else if ($type == 2) {
377 377
                     $brokerage_price = bcsub($user['member_brokerage_price'],$data['extract_price'],2);
378 378
                     $user->member_brokerage_price = $brokerage_price;