日志优化

This commit is contained in:
hahwu 2026-01-19 12:24:47 +08:00
parent f435b444d7
commit 1782094f92
2 changed files with 4 additions and 1 deletions

View File

@ -611,6 +611,9 @@ func (p *PlayerBaseData) GetLastLoginTime() int {
}
func (p *PlayerBaseData) GetName() string {
if p == nil {
return ""
}
return p.Data.UserName
}

View File

@ -1062,8 +1062,8 @@ func (p *Player) TeLog(Type string, Param map[string]interface{}) {
}
//Param["#zone_offset"] = -5
// 游戏内TE日志
go telog.Te.Track(p.GetPlayerBaseMod().GetName(), p.GetPlayerBaseMod().GetName(), Type, Param)
BaseMod := p.PlayMod.getBaseMod()
go telog.Te.Track(BaseMod.Account, BaseMod.Account, Type, Param)
//途游GA
go ga.GAlogEvent(Type, BaseMod.Account, "", Param)
}