purchaseLimitService->addShopCar($this->request->all()); if (isset($res['error'])) { return $this->result(ErrorCode::GOODS_FAILURE, '', $res['error']); } return $this->success($res); } public function updateShopCar() { $res = $this->purchaseLimitService->updateShopCar($this->request->all()); if (isset($res['error'])) { return $this->result(ErrorCode::GOODS_FAILURE, '', $res['error']); } return $this->success($res); } public function test() { $res = $this->purchaseLimitService->test($this->request->all()); return $this->success($res); } }