优化日志

This commit is contained in:
hahwu 2025-01-16 15:14:37 +08:00
parent e3870ec10a
commit ea134948f6
3 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,8 @@ type LogMgr struct {
type Log struct {
Uid int64
AppId int64
ServerId int64
EventName string
Param map[string]interface{}
TimeStamp int64

View File

@ -9,6 +9,7 @@ import (
"encoding/json"
"errors"
"server/GoUtil"
"server/conf"
activityCfg "server/conf/activity"
cardCfg "server/conf/card"
guesscolorCfg "server/conf/guessColor"
@ -797,6 +798,8 @@ 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,

View File

@ -56,7 +56,7 @@ func UnitOrder(p *Player) error {
ChessMod := p.PlayMod.getChessMod()
BaseMod := p.PlayMod.getBaseMod()
OrderMod.OrderList = make(map[int]order.Order)
for i := 0; i < 1003; i++ {
for i := 0; i < 1000; i++ {
err := OrderMod.CreateNormalOrder(BaseMod.GetLevel(), ChessMod.GetEmitList(), BaseMod.EnergyMul)
if err != nil {
return err