diff --git a/server/statserver/constant/constant.go b/server/statserver/constant/constant.go index 29399ca9..1532ca60 100644 --- a/server/statserver/constant/constant.go +++ b/server/statserver/constant/constant.go @@ -6,3 +6,5 @@ const ( SESSION_MGR_MODULE_IDX MAX_MODULE_IDX ) + +const GAME_ID = 2006 diff --git a/server/statserver/session/sessionmgr.go b/server/statserver/session/sessionmgr.go index fc509d20..6c86dfa6 100644 --- a/server/statserver/session/sessionmgr.go +++ b/server/statserver/session/sessionmgr.go @@ -90,6 +90,15 @@ func (this *sessionMgr) updateTimer() { func (this *sessionMgr) userOnline(session *userSession) { + prop := map[string]string{} + prop["gameid"] = q5.ToString(constant.GAME_ID) + f5.GetTgLog().AddTrackLog( + constant.GAME_ID, + session.accountId, + "", //distance_id + "", //ip + "user_online", + prop) } func (this *sessionMgr) userOffline(session *userSession) {