|
@@ -15,7 +15,7 @@ class User extends Validate
|
|
|
'password' => 'regex:\S{6,32}',
|
|
|
'email' => 'require|email|unique:user',
|
|
|
'mobile' => 'unique:user',
|
|
|
- 'level' => 'require|number|max:6|min:0'
|
|
|
+ 'level' => 'require|number|between:0,6'
|
|
|
];
|
|
|
|
|
|
/**
|
|
@@ -27,8 +27,7 @@ class User extends Validate
|
|
|
* 提示消息
|
|
|
*/
|
|
|
protected $message = [
|
|
|
- 'level.max' => '等级最高6级',
|
|
|
- 'level.min' => '等级最低0级',
|
|
|
+ 'level.between' => '等级最高6级',
|
|
|
'level.number' => '等级必须是数字',
|
|
|
];
|
|
|
/**
|