From 345be4ac7761bc0aa80d51752aba2a75ec3c8572 Mon Sep 17 00:00:00 2001 From: YouR97 <952870061@qq.com> Date: Tue, 25 Jun 2024 14:53:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=8D=93=E9=80=9A=E7=9F=A5=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Forest/Assets/PhxhSDK | 2 +- Forest/Assets/Scripts/Gameplay/Game/Main.cs | 1 + .../Assets/Scripts/Gameplay/UI/Other/UILoginPanelController.cs | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Forest/Assets/PhxhSDK b/Forest/Assets/PhxhSDK index 8e39d3a..d4a6cc4 160000 --- a/Forest/Assets/PhxhSDK +++ b/Forest/Assets/PhxhSDK @@ -1 +1 @@ -Subproject commit 8e39d3aad4c76fe6553bfb2db5f0cd945eb708f8 +Subproject commit d4a6cc44b936cb6c7d1ca40862cbe9fa6ab2277d diff --git a/Forest/Assets/Scripts/Gameplay/Game/Main.cs b/Forest/Assets/Scripts/Gameplay/Game/Main.cs index 5344993..66f18e9 100644 --- a/Forest/Assets/Scripts/Gameplay/Game/Main.cs +++ b/Forest/Assets/Scripts/Gameplay/Game/Main.cs @@ -46,6 +46,7 @@ namespace Gameplay.Game { BIManager.Instance.TrackEventOnce(cfg.BI.EventFirst.fte_open); BIManager.Instance.TrackEvent(cfg.BI.Event.app_launch); + Notification.Init(); _game.Start(); } diff --git a/Forest/Assets/Scripts/Gameplay/UI/Other/UILoginPanelController.cs b/Forest/Assets/Scripts/Gameplay/UI/Other/UILoginPanelController.cs index 8ce0723..f23cf6f 100644 --- a/Forest/Assets/Scripts/Gameplay/UI/Other/UILoginPanelController.cs +++ b/Forest/Assets/Scripts/Gameplay/UI/Other/UILoginPanelController.cs @@ -8,6 +8,7 @@ using Framework.Event; using Framework.Manager; using Framework.Constants; using Event = cfg.BI.Event; +using System; public class UILoginPanelController : UIWindow { @@ -109,6 +110,8 @@ public class UILoginPanelController : UIWindow LoginManager.Instance.ShowLogin = true; AppInfoManager.Instance.CurLoginState = AppInfoManager.NetConfigID.DeviceID; CloseWin(); + + Notification.Android.SetNotification("通知", "测试通知", DateTime.UtcNow.AddSeconds(5f), "small", "large", "测试", true); } private async void CloseWin()