修改订单金额的错误

This commit is contained in:
luofei 2024-01-26 18:07:49 +08:00
parent 19c9cf3c3b
commit a09dc031b3

View File

@ -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;