@@ -22,6 +22,7 @@ class MemberValidator extends BaseValidator
'rule' => ':attribute格式不正确',
'mobile' => ':attribute格式不正确',
'email' => ':attribute格式不正确',
+ 'username' => ':attribute格式不正确',
];
// 当前模型所有验证字段
@@ -140,7 +140,7 @@ class EmailService extends BaseService
$this->error = 2010;
return false;
}
-
+
if($checkEmail != $email || $checkCode != $code){
$this->error = 2006;