diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index eda2bfbca13a744f43eb85cab6722f1193f81e85..6d4662a2ba0594ad9f8268eed2bf9de08d1810ec 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -52,5 +52,5 @@ const ( GameAutoMathEnterRoom = "game:autoEnter:%d:%s" // 快速游戏,进入某个房间 Game1V1EnterRoom = "game:oneAndOne:%s" // 1v1游戏,进入某个房间,%s: imGroupId Game1V1GameChannel = "game:gameChannel:%s" // 1v1游戏,发布订阅channel,游戏创建成功后的通知,%s: imGroupId - Game1V1ResetGameRoom = "game:resetGameRoom:%s" // 1v1游戏,把某个房间重新放回匹配池,%s: imGroupId + Game1V1ResetGameRoom = "game:resetGameRoom:%s" // 1v1游戏,把某个房间重新放回匹配池,%s: txGroupId ) diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index 3701b62fc0225f0a12c0141885882cc24343ae7d..ab1d7c358eca3fe94d5a7d4a003bf3450f5c36eb 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -116,6 +116,6 @@ func GetGame1V1GameChannel(imGroupId string) string { return fmt.Sprintf(Game1V1GameChannel, imGroupId) } -func GetGame1V1ResetGameRoom(imGroupId string) string { - return fmt.Sprintf(Game1V1ResetGameRoom, imGroupId) +func GetGame1V1ResetGameRoom(txGroupId string) string { + return fmt.Sprintf(Game1V1ResetGameRoom, txGroupId) }