日志优化

This commit is contained in:
hahwu 2026-01-16 20:59:10 +08:00
parent bed748319f
commit 7ed6c36052

View File

@ -1053,7 +1053,10 @@ func (p *Player) TeLog(Type string, Param map[string]interface{}) {
Param: Param, Param: Param,
}) })
agent := p.GetAgent() agent := p.GetAgent()
if agent != nil { if Param == nil {
Param = make(map[string]interface{})
}
if agent != nil && Param != nil {
Param["Ip"] = agent.RemoteAddr().String() Param["Ip"] = agent.RemoteAddr().String()
} }
//Param["#zone_offset"] = -5 //Param["#zone_offset"] = -5