debug日志

This commit is contained in:
hahwu 2025-01-23 16:21:45 +08:00
parent 3fca083518
commit bdd66bdbbd
3 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ import (
randnameCfg "server/conf/randname" randnameCfg "server/conf/randname"
"server/game/mod/msg" "server/game/mod/msg"
proto "server/msg" proto "server/msg"
"server/pkg/github.com/name5566/leaf/log"
"sort" "sort"
"time" "time"
) )
@ -121,6 +122,7 @@ func (c *ChampshipMgr) NotifyAll(m *msg.Msg) (interface{}, error) {
} }
func (c *ChampshipMgr) ZeroUpdate(m *msg.Msg) (interface{}, error) { func (c *ChampshipMgr) ZeroUpdate(m *msg.Msg) (interface{}, error) {
log.Debug("ChampshipMgr ZeroUpdate")
c.getData().ZeroTime = GoUtil.ZeroTimestamp() c.getData().ZeroTime = GoUtil.ZeroTimestamp()
c.getData().PreRank = c.getData().Rank c.getData().PreRank = c.getData().Rank
c.getData().PreRobot = c.getData().Robot c.getData().PreRobot = c.getData().Robot

View File

@ -236,7 +236,6 @@ func ReqRewardOrder(args []interface{}) error {
if LimitedTimeEventMod.CheckExist(limitedTimeEvent.EVENT_TYPE_CHEST_RAIN) { //宝箱雨活动 if LimitedTimeEventMod.CheckExist(limitedTimeEvent.EVENT_TYPE_CHEST_RAIN) { //宝箱雨活动
ChestRainItems := LimitedTimeEventMod.GetChestReward(mergeList) ChestRainItems := LimitedTimeEventMod.GetChestReward(mergeList)
player.args["ResItemPopId"] = 0 player.args["ResItemPopId"] = 0
err = player.HandleItem(ChestRainItems, msg.ITEM_POP_LABEL_LimitEventChestRain.String()) err = player.HandleItem(ChestRainItems, msg.ITEM_POP_LABEL_LimitEventChestRain.String())
if err != nil { if err != nil {

View File

@ -57,7 +57,7 @@ func HandleClientReq(args []interface{}) {
// 消息的发送者 // 消息的发送者
a := args[1].(gate.Agent) a := args[1].(gate.Agent)
buf := m.GetInfo() buf := m.GetInfo()
// log.Debug("消息Func : %s", m.GetFunc()) log.Debug("消息Func : %s", m.GetFunc())
switch m.GetFunc() { switch m.GetFunc() {
case "ClientTick": case "ClientTick":
case "ReqAdminInfo": case "ReqAdminInfo":