From 1de0edf971746e287b325e460bc87b88708ad57f Mon Sep 17 00:00:00 2001 From: miko <1059665047@qq.com> Date: Thu, 26 Mar 2026 21:24:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=88=BF=E9=97=B4=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=AF=86=E7=A0=81=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/database.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/database/database.go b/database/database.go index 8fbaca2..79a0a1e 100644 --- a/database/database.go +++ b/database/database.go @@ -188,30 +188,32 @@ func getAllowedPropsByGameType(gameType int) map[string]bool { return map[string]bool{ consts.RoomPropsJokerAsTarget: true, consts.RoomPropsShowIP: true, + consts.RoomPropsPassword: true, } case consts.GameTypeUno, consts.GameTypeMahjong: // 对于Uno和麻将,允许设置玩家数量和显示IP return map[string]bool{ consts.RoomPropsPlayerNum: true, - consts.RoomPropsShowIP: true, + consts.RoomPropsShowIP: true, + consts.RoomPropsPassword: true, } case consts.GameTypeTexas: // 对于德州扑克,允许设置玩家数量和显示IP return map[string]bool{ consts.RoomPropsPlayerNum: true, consts.RoomPropsShowIP: true, + consts.RoomPropsPassword: true, } default: // 其他游戏类型允许所有常规属性 return map[string]bool{ - consts.RoomPropsLaiZi: true, - consts.RoomPropsDotShuffle: true, - consts.RoomPropsSkill: true, - consts.RoomPropsPassword: true, - consts.RoomPropsPlayerNum: true, - consts.RoomPropsChat: true, - consts.RoomPropsShowIP: true, - consts.RoomPropsJokerAsTarget: true, + consts.RoomPropsLaiZi: true, + consts.RoomPropsDotShuffle: true, + consts.RoomPropsSkill: true, + consts.RoomPropsPassword: true, + consts.RoomPropsPlayerNum: true, + consts.RoomPropsChat: true, + consts.RoomPropsShowIP: true, } } }