feat: chef

This commit is contained in:
2025-01-15 15:25:39 +08:00
parent 789f753b24
commit 332002cf5a
2 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Constants\Common;
class SystemConfigCode
{
/**
* @var int 配置类型 1=计数器输入 2=最大/最小值输入框 3=开关 4=单选框 5=文本输入框 6=时间 7=日期 8=日期时间 9=json
*/
CONST INT INPUT_TYPE_COUNTER = 1;
CONST INT INPUT_TYPE_MIN_MAX = 2;
CONST INT INPUT_TYPE_SWITCH = 3;
CONST INT INPUT_TYPE_RADIO_BOX = 4;
CONST INT INPUT_TYPE_TEXT = 5;
CONST INT INPUT_TYPE_TIME = 6;
CONST INT INPUT_TYPE_DATE = 7;
CONST INT INPUT_TYPE_DATETIME = 8;
CONST INT INPUT_TYPE_JSON = 9;
}

View File

@@ -180,7 +180,7 @@ class SpuService extends BaseService
*/ */
private function checkInfo(): void private function checkInfo(): void
{ {
$kitchenId = $this->request->input('kitchen_id'); $kitchenId = (int)$this->request->input('kitchen_id');
$kitchenInfo = $this->kitchenModel->getInfoById($kitchenId); $kitchenInfo = $this->kitchenModel->getInfoById($kitchenId);
$this->cityId = (int)$kitchenInfo->city_id; $this->cityId = (int)$kitchenInfo->city_id;