修改订单金额的错误
This commit is contained in:
parent
19c9cf3c3b
commit
a09dc031b3
@ -344,7 +344,7 @@ class StoreConsumptionUserDao extends BaseDao
|
||||
if ($consumptionBalance >= $orderTotalPrice) {
|
||||
$useAmount = $orderTotalPrice;
|
||||
} else {
|
||||
$useAmount = $this->isLast ? $consumptionBalance : bcmul($consumptionBalance, $rate, 5);
|
||||
$useAmount = $this->isLast ? $consumptionBalance : ceil(bcmul($consumptionBalance, $rate, 5));
|
||||
}
|
||||
$consumptionBalance -= $useAmount;
|
||||
$payPrice = $orderTotalPrice - $useAmount;
|
||||
|
Loading…
x
Reference in New Issue
Block a user