Merge pull request 'dev' (#120) from dev into master

Reviewed-on: #120
This commit is contained in:
mkm 2024-01-22 01:20:20 +08:00
commit 0e08f12f58

View File

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