You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.3 KiB
75 lines
2.3 KiB
<?php
|
|
/**
|
|
* +----------------------------------------------------------------------
|
|
* | 会员管理验证器
|
|
* +----------------------------------------------------------------------
|
|
* .::::.
|
|
* .::::::::. | AUTHOR: siyu
|
|
* ::::::::::: | EMAIL: 407593529@qq.com
|
|
* ..:::::::::::' | DATETIME: 2021/06/23
|
|
* '::::::::::::'
|
|
* .::::::::::
|
|
* '::::::::::::::..
|
|
* ..::::::::::::.
|
|
* ``::::::::::::::::
|
|
* ::::``:::::::::' .:::.
|
|
* ::::' ':::::' .::::::::.
|
|
* .::::' :::: .:::::::'::::.
|
|
* .:::' ::::: .:::::::::' ':::::.
|
|
* .::' :::::.:::::::::' ':::::.
|
|
* .::' ::::::::::::::' ``::::.
|
|
* ...::: ::::::::::::' ``::.
|
|
* ```` ':. ':::::::::' ::::..
|
|
* '.:::::' ':'````..
|
|
* +----------------------------------------------------------------------
|
|
*/
|
|
namespace app\admin\validate;
|
|
|
|
use think\Validate;
|
|
|
|
class Users extends Validate
|
|
{
|
|
protected $rule = [
|
|
'email|邮箱' => [
|
|
'require' => 'require',
|
|
'max' => '100',
|
|
],
|
|
'password|密码' => [
|
|
'max' => '100',
|
|
],
|
|
'sex|性别' => [
|
|
'require' => 'require',
|
|
'max' => '1',
|
|
],
|
|
'last_login_time|最后登录时间' => [
|
|
'max' => '10',
|
|
],
|
|
'last_login_ip|最后登录IP' => [
|
|
'max' => '15',
|
|
],
|
|
'qq|QQ' => [
|
|
'max' => '20',
|
|
],
|
|
'mobile|手机' => [
|
|
'max' => '20',
|
|
],
|
|
'mobile_validated|手机验证' => [
|
|
'require' => 'require',
|
|
'max' => '3',
|
|
],
|
|
'email_validated|邮箱验证' => [
|
|
'require' => 'require',
|
|
'max' => '3',
|
|
],
|
|
'type_id|所属分组' => [
|
|
'require' => 'require',
|
|
'max' => '3',
|
|
],
|
|
'status|状态' => [
|
|
'require' => 'require',
|
|
],
|
|
'create_ip|注册IP' => [
|
|
'max' => '15',
|
|
]
|
|
];
|
|
}
|