调整抵扣红包使用比例

This commit is contained in:
luofei 2024-02-04 16:25:04 +08:00
parent 6c90de3771
commit 9d19ea5a1a

View File

@ -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('余额支付时,不能使用抵扣红包');
}