代码提交

This commit is contained in:
wong
2025-04-15 17:08:52 +08:00
parent 4581ef5ee1
commit 988cd419d4
16 changed files with 580 additions and 154 deletions

View File

@@ -104,9 +104,9 @@ class AccountController extends BaseController
if (empty($userName)) {
return errorJson('用户名不能为空');
}
if (!preg_match('/^[a-zA-Z][a-zA-Z0-9]{5,9}$/', $userName)) {
return errorJson('用户名必须以字母开头只能包含字母和数字长度6-10位');
}
// if (!preg_match('/^[a-zA-Z][a-zA-Z0-9]{5,9}$/', $userName)) {
// return errorJson('用户名必须以字母开头只能包含字母和数字长度6-10位');
// }
if (empty($password)) {
return errorJson('密码不能为空');
}