Merge pull request 'feat: 增加对余额支付的处理逻辑' (#56) from dev into rose
Reviewed-on: #56
This commit is contained in:
commit
49f7e50644
@ -79,6 +79,9 @@ class CapitalFlowLogic extends BaseLogic
|
||||
} elseif ($payType == PayEnum::BALANCE_PAY){
|
||||
$model->before_balance = bcadd($this->user['now_money'],$amount,2);
|
||||
$model->balance = $this->user['now_money'];
|
||||
}else{
|
||||
$model->before_balance = $this->user['now_money'];
|
||||
$model->balance = $this->user['now_money'];
|
||||
}
|
||||
$model->create_time = date('Y-m-d H:i:s');
|
||||
$model->type = 'out';
|
||||
|
Loading…
x
Reference in New Issue
Block a user