diff --git a/app/common/dao/store/consumption/StoreConsumptionUserDao.php b/app/common/dao/store/consumption/StoreConsumptionUserDao.php index f12edffb..f4aed88d 100755 --- a/app/common/dao/store/consumption/StoreConsumptionUserDao.php +++ b/app/common/dao/store/consumption/StoreConsumptionUserDao.php @@ -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;