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 9f146986..36de50a4 100644 --- a/src/server/test/fix_test.go +++ b/src/server/test/fix_test.go @@ -90,9 +90,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) {