|
|
|
@ -70,7 +70,8 @@ class OrderOnlineController extends BaseController |
|
|
|
* */ |
|
|
|
public function review() |
|
|
|
{ |
|
|
|
$params = $this->request->all(); |
|
|
|
$userId = $this->request->input('user_id'); |
|
|
|
$marketId = $this->request->input('market_id'); |
|
|
|
//判断用户有没有绑定手机
|
|
|
|
// $telExists = $this->userBindTelService->check($params['user_id']);
|
|
|
|
// if(!$telExists){
|
|
|
|
@ -81,10 +82,10 @@ class OrderOnlineController extends BaseController |
|
|
|
//返回预约送达时间 数组
|
|
|
|
$res['appointment_time'] = $this->appointmentTimeService->do(); |
|
|
|
//
|
|
|
|
$res['store_list'] = $this->shopCartService->do(); |
|
|
|
$res['store_list'] = $this->shopCartService->do($userId,$marketId); |
|
|
|
//获取用户优惠券
|
|
|
|
$res['coupon']['available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$params['user_id'],'',1,'',''); |
|
|
|
$res['coupon']['not_available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$params['user_id'],'',1,'',''); |
|
|
|
$res['coupon']['available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$userId,'',1,''); |
|
|
|
$res['coupon']['not_available'] = $this->couponRecService->allForOrderOlAvailable('181.02',$userId,'',1,''); |
|
|
|
//获取配送费
|
|
|
|
$res['distribution_price'] = '5.0'; |
|
|
|
//增值服务接口
|
|
|
|
|