feat: chef
This commit is contained in:
19
app/Constants/Common/SystemConfigCode.php
Normal file
19
app/Constants/Common/SystemConfigCode.php
Normal 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;
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user