|
@@ -77,6 +77,9 @@ class StoreOrder extends BaseController
|
|
77
|
|
77
|
|
|
78
|
if (!($count = count($cartId)) || $count != count($cartRepository->validIntersection($cartId, $uid)))
|
78
|
if (!($count = count($cartId)) || $count != count($cartRepository->validIntersection($cartId, $uid)))
|
|
79
|
return app('json')->fail('已失效或已下单');
|
79
|
return app('json')->fail('已失效或已下单');
|
|
|
|
80
|
+ if (!$addressId) {
|
|
|
|
81
|
+ return app('json')->fail('请选择收货地址');
|
|
|
|
82
|
+ }
|
|
80
|
$orderInfo = $this->repository->cartIdByOrderInfo($uid, $cartId, $addressId,true,$psType);
|
83
|
$orderInfo = $this->repository->cartIdByOrderInfo($uid, $cartId, $addressId,true,$psType);
|
|
81
|
$orderInfo['product_type']=0;
|
84
|
$orderInfo['product_type']=0;
|
|
82
|
if($this->source=='yhc'){
|
85
|
if($this->source=='yhc'){
|