更新子应用

This commit is contained in:
yaooo 2023-11-22 09:23:51 +08:00
parent 4eca10f17f
commit 8f94005440
2 changed files with 8 additions and 3 deletions

View File

@ -20,7 +20,7 @@ class SystemLists extends BaseAdminDataLists implements ListsSearchInterface
// 获取列表 // 获取列表
public function lists(): array public function lists(): array
{ {
$field = "id,name,app_id,app_key,url,register_status,status,create_time"; $field = "*";
return System::field($field)->where($this->searchWhere)->where('status','<>',2) return System::field($field)->where($this->searchWhere)->where('status','<>',2)
->limit($this->limitOffset, $this->limitLength) ->limit($this->limitOffset, $this->limitLength)
->order('id desc') ->order('id desc')

View File

@ -14,6 +14,11 @@ class SystemValidate extends BaseValidate
protected $rule = [ protected $rule = [
'id' => 'require', 'id' => 'require',
'name' => 'require|unique:system', 'name' => 'require|unique:system',
'app_id' => 'require',
'app_key' => 'require',
'icon' => 'require',
'app_version' => 'require',
'down_url' => 'require',
'url' => 'require|uri|unique:system', 'url' => 'require|uri|unique:system',
'status' => 'require|in:0,1', 'status' => 'require|in:0,1',
'register_status' => 'require|in:0,1', 'register_status' => 'require|in:0,1',
@ -34,12 +39,12 @@ class SystemValidate extends BaseValidate
public function sceneAdd(): SystemValidate public function sceneAdd(): SystemValidate
{ {
return $this->only(['name','url', 'register_status']); return $this->only(['name','app_id','app_key','icon','app_version','down_url','url','status','register_status']);
} }
public function sceneEdit(): SystemValidate public function sceneEdit(): SystemValidate
{ {
return $this->only(['id','name','url','status','register_status']); return $this->only(['id','name','app_id','app_key','icon','app_version','down_url','url','status','register_status']);
} }
public function sceneDetail(): SystemValidate public function sceneDetail(): SystemValidate