From 4d9ae07ef0db279025e19ba7071366005f48fc76 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Fri, 4 Aug 2023 10:32:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _const/rediskey/key.go | 1 + _const/rediskey/key_func.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index 1c77045..761c777 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -50,4 +50,5 @@ const ( ExchangePinkCostDiamond = "finance:exPinkDiamond:%s:%d" // 某天兑换粉钻所花费的黄钻 日期:用户id GameAutoMathEnterRoom = "game:autoEnter:%d:%s" // 快速游戏,进入某个房间 + Game1V1EnterRoom = "game:oneAndOne:%s" // 1v1游戏,进入某个房间,%s: imGroupId ) diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index ded6e90..6d3a58a 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -107,3 +107,7 @@ func GetOpenRamadanSendGiftLeftDiamond(actId, userId uint64) string { func GetAutoMathEnterRoom(userId uint64, imGroupId string) string { return fmt.Sprintf(GameAutoMathEnterRoom, userId, imGroupId) } + +func GetGame1V1EnterRoom(imGroupId string) string { + return fmt.Sprintf(Game1V1EnterRoom, imGroupId) +} -- 2.22.0