Files
CompanyProject/滴滴淘/diditao/app/validate/login/Reg.php
2024-09-27 01:32:49 +08:00

27 lines
813 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\validate\login;
use diditao\common\base\BaseValidate;
class Reg extends BaseValidate
{
protected $exceptionKey = 'reg validate failed';
protected $rule=[
'cellphone'=>'require|mobile',
'verify_code'=>'require|number|length:4',
'password'=>'require|length:6,25'
];
protected $message=[
'cellphone.require'=>'请输入登录手机号码',
'cellphone.mobile'=>'请输入11位手机号码',
'verify_code.require'=>'请输入短信验证码',
'verify_code.number'=>'请输入正确的短信验证码4位数字',
'verify_code.length'=>'请输入正确的短信验证码4位数字',
'password.require'=>'请输入登录密码',
'password.length'=>'登录密码长度为6-25位'
];
}