名称注销后 可重复使用

This commit is contained in:
2025-09-18 16:14:32 +08:00
parent 9a8900739d
commit 50ebe80013
2 changed files with 5 additions and 1 deletions

View File

@@ -58,6 +58,10 @@ class UserData extends Model
if(mb_strlen($nick_name) > 24){
return['code' => 0, 'msg' => '昵称长度不能超过24个字符','data' =>null];
}
//名称中不能有 系统管理 等关键字
if(!nickname_filter($nick_name)){
return ['code' => 0, 'msg' => '名称中不能有 系统、管理、官方 等相关字', 'data' => null];
}
}
if (!empty($birthday)) {