增加notification debug

This commit is contained in:
hahwu 2026-02-27 00:01:22 +08:00
parent 11baae6ea5
commit f56121d9ee
2 changed files with 5 additions and 3 deletions

View File

@ -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)
}

View File

@ -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) {