From dcf60777c9346ff058f06298d03173f0c53d1902 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 16 十二月 2020 20:42:15 +0800 Subject: [PATCH] 20201216-4 --- HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 28 ++++++++++++++++++++++++++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs index 27e7a31..ea6db63 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs @@ -81,7 +81,7 @@ scene.collect = false; string msg = scene.name + Language.StringByID(StringId.CollectionCancelled); LoadSceneFunctionControlZone(); - scene.SaveSceneData(true); + scene.CollectScene(); new PublicAssmebly().TipMsgAutoClose(msg, true); }; } @@ -282,6 +282,7 @@ //鎴块棿鍒犻櫎浜嬩欢 Action backAction = () => { + RegisterGetPushMessageAction(); GetUnreadPushMessages(); }; @@ -403,7 +404,7 @@ { try { - return Utlis.UnixToDateTimeWithFormatMS(time, "HH:mm"); + return Utlis.ToFriendlyDisplay(time); } catch (Exception ex) { @@ -411,6 +412,29 @@ } } + /// <summary> + /// 娉ㄥ唽鏀跺埌鎺ㄩ�佺洃鍚� + /// </summary> + void RegisterGetPushMessageAction() + { + Action RegisterGetPushMessageAction = () => { + if (bodyView != null) + { + //Utlis.WriteLine("GetPushMessageAction H鏀跺埌鎺ㄩ��"); + GetUnreadPushMessages(); + } + }; + HDLCommon.GetPushMessageAction = RegisterGetPushMessageAction; + } + + /// <summary> + /// 鍙栨秷鏀跺埌鎺ㄩ�佺洃鍚� + /// </summary> + void UnregisterGetPushMessageAction() + { + HDLCommon.GetPushMessageAction = null; + } + #endregion } -- Gitblit v1.8.0