更新细节

This commit is contained in:
yaooo 2023-12-02 10:29:08 +08:00
parent fd43529be2
commit 4e5a8f0567
1 changed files with 2 additions and 4 deletions

View File

@ -38,7 +38,6 @@ class DeviceValidate extends BaseValidate
'monitor_type' => 'require', 'monitor_type' => 'require',
'status' => 'require', 'status' => 'require',
'is_online' => 'require', 'is_online' => 'require',
'is_bind' => 'require',
]; ];
@ -53,7 +52,6 @@ class DeviceValidate extends BaseValidate
'type' => '设备类型', 'type' => '设备类型',
'status' => '设备状态', 'status' => '设备状态',
'is_online' => '是否在线', 'is_online' => '是否在线',
'is_bind' => '是否绑定土地',
]; ];
@ -65,7 +63,7 @@ class DeviceValidate extends BaseValidate
*/ */
public function sceneAdd() public function sceneAdd()
{ {
return $this->only(['code','name','type','status','is_online','is_bind']); return $this->only(['code','name','type','status','is_online']);
} }
@ -77,7 +75,7 @@ class DeviceValidate extends BaseValidate
*/ */
public function sceneEdit() public function sceneEdit()
{ {
return $this->only(['id','code','name','type','status','is_online','is_bind']); return $this->only(['id','code','name','type','status','is_online']);
} }