Commit 4d9ae07e authored by chenweijian's avatar chenweijian

游戏

parent 0f001155
......@@ -50,4 +50,5 @@ const (
ExchangePinkCostDiamond = "finance:exPinkDiamond:%s:%d" // 某天兑换粉钻所花费的黄钻 日期:用户id
GameAutoMathEnterRoom = "game:autoEnter:%d:%s" // 快速游戏,进入某个房间
Game1V1EnterRoom = "game:oneAndOne:%s" // 1v1游戏,进入某个房间,%s: imGroupId
)
......@@ -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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment