更新日志
This commit is contained in:
parent
ea134948f6
commit
d4c01061aa
@ -806,6 +806,8 @@ func (ad *GameLogic) InitActivity() {
|
||||
}
|
||||
|
||||
func (ad *GameLogic) AddLog(Log *Log) {
|
||||
Log.ServerId = conf.Server.ServerID
|
||||
Log.AppId = conf.Server.AppID
|
||||
Log.TimeStamp = time.Now().Unix()
|
||||
go func() {
|
||||
ad.MLogManager.AddLog(Log)
|
||||
|
||||
@ -26,8 +26,8 @@ type LogMgr struct {
|
||||
|
||||
type Log struct {
|
||||
Uid int64
|
||||
AppId int64
|
||||
ServerId int64
|
||||
AppId int
|
||||
ServerId int
|
||||
EventName string
|
||||
Param map[string]interface{}
|
||||
TimeStamp int64
|
||||
|
||||
@ -9,7 +9,6 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"server/GoUtil"
|
||||
"server/conf"
|
||||
activityCfg "server/conf/activity"
|
||||
cardCfg "server/conf/card"
|
||||
guesscolorCfg "server/conf/guessColor"
|
||||
@ -798,8 +797,6 @@ func (p *Player) TeLog(Type string, Param map[string]interface{}) {
|
||||
}
|
||||
|
||||
func (p *Player) Kafka(Type string, Param map[string]interface{}) {
|
||||
Param["AppId"] = conf.Server.AppID
|
||||
Param["ServerId"] = conf.Server.ServerID
|
||||
G_GameLogicPtr.AddLog(&Log{
|
||||
Uid: p.M_DwUin,
|
||||
EventName: Type,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user