更新日志

This commit is contained in:
hahwu 2025-01-16 15:49:50 +08:00
parent ea134948f6
commit d4c01061aa
3 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -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

View File

@ -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,