Commit 54a94a53 authored by chenweijian's avatar chenweijian

游戏

parent c5bc5ecd
...@@ -3,6 +3,7 @@ package game_c ...@@ -3,6 +3,7 @@ package game_c
import ( import (
"context" "context"
"encoding/json" "encoding/json"
"git.hilo.cn/hilo-common/mylogrus"
"git.hilo.cn/hilo-common/resource/redisCli" "git.hilo.cn/hilo-common/resource/redisCli"
"hilo-group/_const/enum/game_e" "hilo-group/_const/enum/game_e"
"time" "time"
...@@ -20,6 +21,7 @@ type gameAutoJoinMsg struct { ...@@ -20,6 +21,7 @@ type gameAutoJoinMsg struct {
func SetAutoMathEnterRoom(userId uint64, imGroupId, traceId, token, enterType, gameCode, is1V1, gameMode, is1V1Robot string) error { func SetAutoMathEnterRoom(userId uint64, imGroupId, traceId, token, enterType, gameCode, is1V1, gameMode, is1V1Robot string) error {
key := game_e.GetAutoMathEnterRoom(userId, imGroupId) key := game_e.GetAutoMathEnterRoom(userId, imGroupId)
mylogrus.MyLog.Infof("Start1V1AfterEnterRoom is1V1Robot:%d, userId:%d, imGroupId:%v", is1V1Robot, userId, imGroupId)
info := gameAutoJoinMsg{traceId, token, enterType, gameCode, is1V1, gameMode, is1V1Robot} info := gameAutoJoinMsg{traceId, token, enterType, gameCode, is1V1, gameMode, is1V1Robot}
data, err := json.Marshal(info) data, err := json.Marshal(info)
if err != nil { if err != nil {
......
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