|
|
@@ -15,6 +15,7 @@ class AdminValidate extends BaseValidate
|
|
|
'id' => 'require',
|
|
|
'username' => 'require|min:1',
|
|
|
'nickname' => 'require|min:1',
|
|
|
+ 'is_kefu' => 'require|in:0,1',
|
|
|
'password' => 'min:6',
|
|
|
'phone' => 'length:0,20',
|
|
|
'email' => 'email',
|
|
|
@@ -34,6 +35,7 @@ class AdminValidate extends BaseValidate
|
|
|
'id' => 'id',
|
|
|
'username' => '账号',
|
|
|
'nickname' => '昵称',
|
|
|
+ 'is_kefu' => '是否是客服',
|
|
|
'password' => '密码',
|
|
|
'phone' => '手机号',
|
|
|
'email' => '邮箱',
|
|
|
@@ -52,7 +54,7 @@ class AdminValidate extends BaseValidate
|
|
|
*/
|
|
|
public function sceneAdd()
|
|
|
{
|
|
|
- return $this->only(['username', 'nickname', 'password', 'phone', 'email', 'sex', 'role_id', 'department_id', 'remark']);
|
|
|
+ return $this->only(['username', 'nickname', 'is_kefu', 'password', 'phone', 'email', 'sex', 'role_id', 'department_id', 'remark']);
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -61,7 +63,7 @@ class AdminValidate extends BaseValidate
|
|
|
*/
|
|
|
public function sceneEdit()
|
|
|
{
|
|
|
- return $this->only(['id','username', 'nickname', 'password', 'phone', 'email', 'sex', 'role_id', 'department_id', 'remark']);
|
|
|
+ return $this->only(['id','username', 'nickname', 'is_kefu', 'password', 'phone', 'email', 'sex', 'role_id', 'department_id', 'remark']);
|
|
|
}
|
|
|
|
|
|
public function sceneDel()
|