shopCartService->do(); //获取购物车失效商品信息 $res['store_lists_invalid'] = $this->shopCartService->undo(); //计算购物车价格 $res['total'] = $this->shopCartService->getTotal(); return $this->success($res); } public function info() { $res['shopcart']['count'] = $this->shopCartService->countGoods(); $res['shopcart']['total'] = $this->shopCartService->getTotal(); return $this->success($res); } }