|
|
@ -72,6 +72,7 @@ class OrderOnlineController extends BaseController |
|
|
{ |
|
|
{ |
|
|
$userId = $this->request->input('user_id'); |
|
|
$userId = $this->request->input('user_id'); |
|
|
$marketId = $this->request->input('market_id'); |
|
|
$marketId = $this->request->input('market_id'); |
|
|
|
|
|
$shopcartIds = $this->request->input('shopcart_ids'); |
|
|
//判断用户有没有绑定手机
|
|
|
//判断用户有没有绑定手机
|
|
|
// $telExists = $this->userBindTelService->check($params['user_id']);
|
|
|
// $telExists = $this->userBindTelService->check($params['user_id']);
|
|
|
// if(!$telExists){
|
|
|
// if(!$telExists){
|
|
|
@ -82,7 +83,7 @@ class OrderOnlineController extends BaseController |
|
|
//返回预约送达时间 数组
|
|
|
//返回预约送达时间 数组
|
|
|
$res['appointment_time'] = $this->appointmentTimeService->do(); |
|
|
$res['appointment_time'] = $this->appointmentTimeService->do(); |
|
|
//
|
|
|
//
|
|
|
$res['store_list'] = $this->shopCartService->do($userId,$marketId); |
|
|
|
|
|
|
|
|
$res['store_list'] = $this->shopCartService->getGoodsByShopcartId($shopcartIds); |
|
|
//获取用户优惠券
|
|
|
//获取用户优惠券
|
|
|
$res['coupon']['available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$userId,'',1,''); |
|
|
$res['coupon']['available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$userId,'',1,''); |
|
|
$res['coupon']['not_available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$userId,'',1,''); |
|
|
$res['coupon']['not_available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$userId,'',1,''); |
|
|
@ -93,6 +94,14 @@ class OrderOnlineController extends BaseController |
|
|
'select' => 1, |
|
|
'select' => 1, |
|
|
'price' => 3.50 |
|
|
'price' => 3.50 |
|
|
]; |
|
|
]; |
|
|
|
|
|
$total = 0; |
|
|
|
|
|
foreach ($res['store_list'] as $store) |
|
|
|
|
|
{ |
|
|
|
|
|
$total+= $store['subtotal']; |
|
|
|
|
|
} |
|
|
|
|
|
$total+= $res['value_added_service']['price']; |
|
|
|
|
|
$total+= $res['distribution_price']; |
|
|
|
|
|
$res['total'] = $total; |
|
|
return $this->success($res); |
|
|
return $this->success($res); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|