diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php index 62bf8489..5710b5da 100755 --- a/app/common/repositories/store/order/StoreOrderCreateRepository.php +++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php @@ -622,7 +622,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository $allow_no_address = false; } - if ($this->store_consumption_user['type'] == 2 && $order_total_price >= 6 && $this->payType == 'balance') { + if (isset($this->store_consumption_user['type']) && $this->store_consumption_user['type'] == 2 && $order_total_price >= 6 && $this->payType == 'balance') { throw new ValidateException('余额支付时,不能使用抵扣红包'); }