修改取消提现手续费
This commit is contained in:
@@ -84,11 +84,6 @@ class DivideAccountController extends BaseAdminController
|
||||
'user_type' => 1
|
||||
])->one();
|
||||
|
||||
$Platform= CashAccount::find()->where([
|
||||
'user_id' => 0,
|
||||
'user_type' => 2
|
||||
])->one();
|
||||
// $CashAccount->able_cash = bcsub($CashAccount->able_cash, $post['apply_cash'], 2);
|
||||
$CashAccount->frozen_cash = bcadd($post['apply_cash'], $CashAccount->frozen_cash, 2);
|
||||
$CashAccount->last_apply_time = date('Y-m-d H:i:s', time());
|
||||
$CashAccount->saveOrFail();
|
||||
@@ -343,11 +338,6 @@ class DivideAccountController extends BaseAdminController
|
||||
throw new \yii\db\Exception('银行卡相关配置不能为空');
|
||||
}
|
||||
|
||||
$chargeCpr = $this->getChargeCashPayRecordStatusByOrderNo($CashApply->order_no);
|
||||
|
||||
if (empty($chargeCpr->charge_cash?? '')) {
|
||||
throw new \yii\db\Exception('手续费异常');
|
||||
}
|
||||
// 准备打款参数
|
||||
$param = [
|
||||
'order_no' => $CashApply->order_no, // 订单号
|
||||
@@ -578,6 +568,7 @@ class DivideAccountController extends BaseAdminController
|
||||
'user_type' => 2
|
||||
])->one();
|
||||
$platformAccount->able_cash = bcadd($platformAccount->able_cash, $chargeCpr->charge_cash, 2);
|
||||
$platformAccount->charge_cash = bcadd($platformAccount->charge_cash, $chargeCpr->charge_cash, 2);
|
||||
$platformAccount->saveOrFail();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user