diff --git a/src/server/game/admin.go b/src/server/game/admin.go index de5e0d8b..8eb4e653 100644 --- a/src/server/game/admin.go +++ b/src/server/game/admin.go @@ -33,7 +33,8 @@ var AdminFuncMap = map[string]func([]interface{}) error{ func AdminProcess(Func string, args []interface{}) { defer func() { if r := recover(); r != nil { - GoUtil.SendFeishuFatal(0, Func, fmt.Sprintf("fatal : %s", r)) + log.Error("uid : %d, func : %s, fatal : %s", 0, Func, r) + //GoUtil.SendFeishuFatal(0, Func, fmt.Sprintf("fatal : %s", r)) } }() if f, ok := AdminFuncMap[Func]; ok { diff --git a/src/server/test/fix_test.go b/src/server/test/fix_test.go index 03d6d438..e068954c 100644 --- a/src/server/test/fix_test.go +++ b/src/server/test/fix_test.go @@ -94,10 +94,18 @@ func TestRandInt(t *testing.T) { func TestEndless(t *testing.T) { p1 := new(game.Player) p1.InitPlayer("3625212") + p1.ZeroUpdate(nil) MailMod := p1.GetMailMod() MailMod.BackData() } +func TestAdmin(t *testing.T) { + player := new(game.Player) + player.M_DwUin = 100001 + player.InitPlayerOnly() + player.ZeroUpdate(nil) +} + // 10130 10165 func TestNotify(t *testing.T) { titlekey, infokey := notification_cfg.GetFriendApplyNotificationMsg()