优化日志
This commit is contained in:
parent
e3870ec10a
commit
ea134948f6
@ -26,6 +26,8 @@ type LogMgr struct {
|
||||
|
||||
type Log struct {
|
||||
Uid int64
|
||||
AppId int64
|
||||
ServerId int64
|
||||
EventName string
|
||||
Param map[string]interface{}
|
||||
TimeStamp int64
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user