diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php index 443d773d..6ef2147f 100644 --- a/app/common/repositories/store/order/StoreOrderCreateRepository.php +++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php @@ -568,9 +568,9 @@ class StoreOrderCreateRepository extends StoreOrderRepository $pay_price = $org_price; } //计算总红包金额 - if ($consumption_id > 0 && $pay_price>=6) { + if ($consumption_id > 0 ) { if ($this->store_consumption_user) { - if ($this->store_consumption_user['type'] == 2) { + if ($this->store_consumption_user['type'] == 2 && $pay_price>=6) { $a = bcdiv($pay_price, 6); if ($this->balance > $a) { $pay_price = bcsub($pay_price, $a, 2);