调整红包使用逻辑

This commit is contained in:
luofei 2024-01-24 18:07:23 +08:00
parent d2f3feb307
commit c2d0b36a9d

View File

@ -628,7 +628,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
$consumptionTotal = 0;
if ($consumption_id > 0 && $this->store_consumption_user && $source == 103) {
if ($this->store_consumption_user['type'] == 2 && $order_total_price >= 6) {
if ($this->payType != 'balance') {
if ($this->payType == 'balance') {
throw new ValidateException('余额支付时,不能使用抵扣红包');
}
$consumptionTotal = bcdiv($order_total_price, 6, 2);