diff --git a/app/Service/Admin/System/CatererService.php b/app/Service/Admin/System/CatererService.php index b699bfa..797803c 100644 --- a/app/Service/Admin/System/CatererService.php +++ b/app/Service/Admin/System/CatererService.php @@ -81,7 +81,7 @@ class CatererService extends BaseService public function edit(): array { $userId = (int)$this->request->input('user_id'); - $kitchenId = $this->request->input('kitchen_id'); + $kitchenId = (int)$this->request->input('kitchen_id'); $kitchenInfo = $this->kitchenModel->getInfoById($kitchenId); if (empty($kitchenInfo)) throw new ErrException('该厨房信息为空');