From 28d36fb762e9bd9723d85035309ac1fd5eb1f67b Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Wed, 16 Aug 2023 10:19:07 +0800 Subject: [PATCH] game1v1 --- _const/rediskey/key.go | 2 +- _const/rediskey/key_func.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index 5b94c0b..22e9fd0 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -50,7 +50,7 @@ const ( ExchangePinkCostDiamond = "finance:exPinkDiamond:%s:%d" // 某天兑换粉钻所花费的黄钻 日期:用户id GameAutoMathEnterRoom = "game:autoEnter:%d:%s" // 快速游戏,进入某个房间 - Game1V1EnterRoom = "game:oneAndOne:%s" // 1v1游戏,进入某个房间,%s: imGroupId + Game1V1EnterRoom = "game:oneAndOne:%s" // 1v1游戏,进入某个房间,%s: txGroupId Game1V1GameChannel = "game:gameChannel:%s" // 1v1游戏,发布订阅channel,游戏创建成功后的通知,%s: imGroupId Game1V1ResetGameRoom = "game:resetGameRoom:%s" // 1v1游戏,把某个房间重新放回匹配池,%s: txGroupId Game1V1RoomRobot = "game:oneAndOneRobot:%s" // 1v1游戏,某个房间匹配到的机器人,%s: txGroupId, val: 机器人uid diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index 407d42d..fa680eb 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -108,8 +108,8 @@ func GetAutoMathEnterRoom(userId uint64, imGroupId string) string { return fmt.Sprintf(GameAutoMathEnterRoom, userId, imGroupId) } -func GetGame1V1EnterRoom(imGroupId string) string { - return fmt.Sprintf(Game1V1EnterRoom, imGroupId) +func GetGame1V1EnterRoom(txGroupId string) string { + return fmt.Sprintf(Game1V1EnterRoom, txGroupId) } func GetGame1V1GameChannel(imGroupId string) string { -- 2.22.0