From f56121d9ee055fe744c0209fe33db41cf831107e Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Fri, 27 Feb 2026 00:01:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0notification=20debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/gm_handler.go | 3 +++ src/server/test/fix_test.go | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/server/game/gm_handler.go b/src/server/game/gm_handler.go index 11ec7531..b4327146 100644 --- a/src/server/game/gm_handler.go +++ b/src/server/game/gm_handler.go @@ -600,6 +600,9 @@ func ReqGmCommand_(player *Player, Command string) error { Id, _ := strconv.Atoi(arg[1]) NotifyFriendApply(Id, int(player.M_DwUin)) NotifyPetroomGame(Id) + case "notificationTest": + Id, _ := strconv.Atoi(arg[1]) + GoUtil.NotifyPlayer(Id, 1, "Test Notification", "This is a test notification from the server.") default: return fmt.Errorf("Player %d ReqGmCommand:%v not found", player.M_DwUin, arg) } diff --git a/src/server/test/fix_test.go b/src/server/test/fix_test.go index 487bcd0e..a8cbbbd7 100644 --- a/src/server/test/fix_test.go +++ b/src/server/test/fix_test.go @@ -92,9 +92,8 @@ func TestRandInt(t *testing.T) { func TestEndless(t *testing.T) { p1 := new(game.Player) p1.InitPlayer("3625212") - BaseMod := p1.GetBaseMod() - SevenMod := p1.GetSevenLoginMod() - SevenMod.ZeroUpdate(0, int(BaseMod.LoginTime)) + MailMod := p1.GetMailMod() + MailMod.BackData() } func TestNotify(t *testing.T) {