|
|
@@ -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;
|