名称注销后 可重复使用

This commit is contained in:
2025-09-18 15:40:00 +08:00
parent ff46a81bde
commit 9a8900739d
4 changed files with 15 additions and 4 deletions

View File

@@ -28,6 +28,12 @@ class Room extends Model
return ['code' => 0, 'msg' => '请先进行实名认证通过后操作', 'data' => null];
}
//检查房间名称是否包含官方等词
//名称中不能有 系统管理 等关键字
if(!nickname_filter($room_name)){
return ['code' => 0, 'msg' => '名称中不能有 系统、管理、官方等相关敏感字', 'data' => null];
}
if($type <= 0){
$room_info = db::name('vs_room')->where(['user_id' => $uid, 'type_id' => ['<>',6]])->find();
if (!empty($room_info)) {