feat : caterer
This commit is contained in:
@@ -81,7 +81,7 @@ class CatererService extends BaseService
|
|||||||
public function edit(): array
|
public function edit(): array
|
||||||
{
|
{
|
||||||
$userId = (int)$this->request->input('user_id');
|
$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);
|
$kitchenInfo = $this->kitchenModel->getInfoById($kitchenId);
|
||||||
if (empty($kitchenInfo)) throw new ErrException('该厨房信息为空');
|
if (empty($kitchenInfo)) throw new ErrException('该厨房信息为空');
|
||||||
|
|||||||
Reference in New Issue
Block a user