增加日志
This commit is contained in:
parent
deb90ba749
commit
7e4a4c2bd4
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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": // 获取服务器时间
|
||||
|
||||
Loading…
Reference in New Issue
Block a user