日志写入采用异步方式

This commit is contained in:
hahwu 2025-11-21 17:45:42 +08:00
parent edae9c0a5e
commit d0aec519d1

View File

@ -1056,11 +1056,11 @@ func (p *Player) TeLog(Type string, Param map[string]interface{}) {
if agent != nil {
Param["Ip"] = agent.RemoteAddr().String()
}
telog.Te.Track(p.GetPlayerBaseMod().GetName(), p.GetPlayerBaseMod().GetName(), Type, Param)
go telog.Te.Track(p.GetPlayerBaseMod().GetName(), p.GetPlayerBaseMod().GetName(), Type, Param)
BaseMod := p.PlayMod.getBaseMod()
//途游GA
ga.GAlogEvent(Type, BaseMod.Account, "", Param)
go ga.GAlogEvent(Type, BaseMod.Account, "", Param)
}
func (p *Player) Kafka(Type string, Param map[string]interface{}) {