From a6013538618c19860fa2cc1dde07639aa23217f0 Mon Sep 17 00:00:00 2001 From: YouR97 <952870061@qq.com> Date: Fri, 19 Jul 2024 14:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Forest/Assets/PhxhSDK | 2 +- .../Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Forest/Assets/PhxhSDK b/Forest/Assets/PhxhSDK index e647ce5..e308df9 160000 --- a/Forest/Assets/PhxhSDK +++ b/Forest/Assets/PhxhSDK @@ -1 +1 @@ -Subproject commit e647ce5f166044b1d548d726b819b6808dcba974 +Subproject commit e308df9b0c54a031513e53e6ccea63cb23316105 diff --git a/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs b/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs index 31839aa..2635a9f 100644 --- a/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs +++ b/Forest/Assets/Scripts/Gameplay/Debug/SROptions.Notification.cs @@ -9,9 +9,7 @@ public partial class SROptions [Category("通知相关"), DisplayName("通知id")] public int NotificationID { get; set; } - /// - /// 初始化通知 - /// + [Category("通知相关"), DisplayName("初始化通知")] public void InitNotification() { Notification.Init(); @@ -21,7 +19,7 @@ public partial class SROptions public void SendNotification() { #if UNITY_ANDROID - DateTime dateTime = DateTime.UtcNow.AddSeconds(10f); + DateTime dateTime = DateTime.Now.AddSeconds(10f); NotificationID = Notification.Android.SetNotification("通知", "测试通知", DateTime.UtcNow.AddSeconds(5f), "small", "large", "测试", true); DebugUtil.Log($"发送安卓测试通知,通知id:{NotificationID},时间:{dateTime}"); #endif