日志优化
This commit is contained in:
parent
bed748319f
commit
7ed6c36052
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user