增加notification debug
This commit is contained in:
parent
2d6bcc09b9
commit
1b545ea1b7
@ -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)
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user