更新子应用
This commit is contained in:
parent
4eca10f17f
commit
8f94005440
|
@ -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')
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue