调整红包使用逻辑

This commit is contained in:
luofei 2024-01-24 18:05:05 +08:00
parent 9178f88a93
commit e00c5e1a39

View File

@ -627,7 +627,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->store_consumption_user['type'] == 2 && $order_total_price >= 6) {
if ($this->payType != 'balance') {
throw new \Exception('余额支付时,不能使用抵扣红包');
}