修复提现金额的历史遗留问题

This commit is contained in:
2024-09-30 13:58:34 +08:00
parent 2fcc6044b7
commit b8a1ad64b2

View File

@@ -311,8 +311,6 @@ class DivideAccountController extends BaseAdminController
// 检查银行账户配置是否完整,如果有任一配置项为空,则解冻申请提现的金额,并记录审核失败
if (empty($config['bank_user_name']) || empty($config['bank_card']) || empty($config['bank_name']) || empty($config['bank_account_type'])) {
$CashAccount->frozen_cash = bcsub($CashAccount->frozen_cash, $CashApply->apply_cash, 2); // 申请提现冻结的金额
$CashAccount->saveOrFail();
$CashApply->check_id = $user->uid;
$CashApply->check_status = 4; // 提现失败