增加日志

This commit is contained in:
hahwu 2026-01-16 18:53:23 +08:00
parent 09e2142a6c
commit bed748319f
2 changed files with 7 additions and 11 deletions

View File

@ -213,13 +213,12 @@ func (ad *GameLogic) NewAccountInsertDataToDB() bool {
Uid: insertId,
EventName: "register",
})
G_GameLogicPtr.AddLog(&Log{
Uid: insertId,
EventName: "register_info",
Param: map[string]interface{}{
"username": ad.Db_AccountInfo.UserName,
},
})
// 创建玩家日志
player := new(Player)
BaseMod := player.PlayMod.getBaseMod()
BaseMod.Account = ad.Db_AccountInfo.UserName
player.TeLog("register", nil)
return true
}

View File

@ -182,10 +182,7 @@ func HandleClientReq(args []interface{}) {
p.(*Player).PlayMod.getBaseMod().DiviceId = detail.Device //加锁
p.(*Player).PushClientRes(ResLogin)
p.(*Player).LoginBackData()
G_GameLogicPtr.AddLog(&Log{
Uid: p.(*Player).M_DwUin,
EventName: "Login_log",
})
p.(*Player).TeLog("Login_log", nil)
}
p.(*Player).ProcessTrigger()
case "ReqServerTime": // 获取服务器时间