处理红包使用的错误

This commit is contained in:
lewis 2024-01-22 01:06:44 +08:00
parent de11c70461
commit fc7fe819fc

View File

@ -588,9 +588,9 @@ class StoreOrderCreateRepository extends StoreOrderRepository
$this->consumption_money = bcadd($this->consumption_money, $this->balance, 2);
$this->balance=0;
} else {
$this->consumption_money = $pay_price;
$this->balance = bcsub($this->balance, $pay_price, 2);
$pay_price = 0;
$this->consumption_money = bcadd($this->consumption_money, $pay_price, 2);
$this->balance = $pay_price;
}
}