diff --git a/app/common/repositories/store/order/StoreOrderCreateRepository.php b/app/common/repositories/store/order/StoreOrderCreateRepository.php index c5c63ad2..4362247e 100644 --- a/app/common/repositories/store/order/StoreOrderCreateRepository.php +++ b/app/common/repositories/store/order/StoreOrderCreateRepository.php @@ -654,9 +654,6 @@ class StoreOrderCreateRepository extends StoreOrderRepository $openIntegral = $merIntegralFlag && !$order_type && $sysIntegralConfig['integral_status'] && $sysIntegralConfig['integral_money'] > 0; $total_coupon = bcadd($order_svip_discount, bcadd(bcadd($total_platform_coupon_price, $order_coupon_price, 2), $order_total_integral_price, 2), 2); $is_self_pickup = true; - if($order_type==='balance' &&$source!=103 && $createOrder==true){ - throw new ValidateException('余额支付只能用于里海云仓'); - } return compact( 'is_self_pickup', 'order_type', @@ -695,6 +692,9 @@ class StoreOrderCreateRepository extends StoreOrderRepository $orderInfo = $this->v2CartIdByOrderInfo($user, $cartId, $takes, $useCoupon, $useIntegral, $addressId, true, $consumption_id); $order_model = $orderInfo['order_model']; $order_extend = $orderInfo['order_extend']; + if($pay_type=='balance' && $orderInfo['source']!=103){ + throw new ValidateException('余额支付只能用于里海云仓'); + } if (!$orderInfo['order_delivery_status']) { throw new ValidateException('部分商品配送方式不一致,请单独下单'); }