|
|
|
@ -20,13 +20,13 @@ class ShopCartController extends BaseController |
|
|
|
|
|
|
|
return $this->success($this->shopCartService->allForUser($userId, $marketId)); |
|
|
|
|
|
|
|
//获取购物车商品信息
|
|
|
|
$res['store_lists'] = $this->shopCartService->do($userId,$marketId); |
|
|
|
//获取购物车失效商品信息
|
|
|
|
$res['store_lists_invalid'] = $this->shopCartService->undo($userId,$marketId); |
|
|
|
//计算购物车价格
|
|
|
|
$res['total'] = $this->shopCartService->getTotal($userId,$marketId); |
|
|
|
return $this->success($res); |
|
|
|
// //获取购物车商品信息
|
|
|
|
// $res['store_lists'] = $this->shopCartService->do($userId,$marketId);
|
|
|
|
// //获取购物车失效商品信息
|
|
|
|
// $res['store_lists_invalid'] = $this->shopCartService->undo($userId,$marketId);
|
|
|
|
// //计算购物车价格
|
|
|
|
// $res['total'] = $this->shopCartService->getTotal($userId,$marketId);
|
|
|
|
// return $this->success($res);
|
|
|
|
} |
|
|
|
|
|
|
|
public function info() |
|
|
|
|