From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期二, 30 八月 2022 09:37:38 +0800 Subject: [PATCH] 合并了IOS的代码 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlJiguangMsgPushLogic.cs | 61 ++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlJiguangMsgPushLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlJiguangMsgPushLogic.cs new file mode 100644 index 0000000..309d8eb --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlJiguangMsgPushLogic.cs @@ -0,0 +1,61 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Shared.Phone.UserCenter +{ + /// <summary> + /// 鏋佸厜鎺ㄩ�佹秷鎭殑澶勭悊閫昏緫 + /// </summary> + public class HdlJiguangMsgPushLogic + { + #region 鈻� 鍙橀噺澹版槑___________________________ + + /// <summary> + /// 鏋佸厜鎺ㄩ�佹秷鎭殑澶勭悊閫昏緫 + /// </summary> + private static HdlJiguangMsgPushLogic m_Current = null; + /// <summary> + /// 鏋佸厜鎺ㄩ�佹秷鎭殑澶勭悊閫昏緫 + /// </summary> + public static HdlJiguangMsgPushLogic Current + { + get + { + if (m_Current == null) + { + m_Current = new HdlJiguangMsgPushLogic(); + } + return m_Current; + } + } + + #endregion + + #region 鈻� 澶勭悊鏋佸厜淇℃伅鎺ㄩ�乢__________________ + + /// <summary> + /// 澶勭悊鏋佸厜淇℃伅鎺ㄩ�� + /// </summary> + /// <param name="title">鏍囬</param> + /// <param name="message">淇℃伅</param> + /// <param name="extras">璐熻浇鏁版嵁</param> + public void AdjustJiguangMsgPush(string title, string message, string extras) + { + if (extras.Contains("Offline") == true) + { + HdlThreadLogic.Current.RunMain(() => + { + //姝ゅ笎鍙峰凡鍦ㄥ埆澶勭櫥褰�,鎮ㄨ杩笅绾� + string msg = Language.StringByID(R.MyInternationalizationString.uHadBeenLoginAndOffLine); + var contr = new ShowMsgControl(ShowMsgType.Tip, msg); + contr.Show(); + //璐﹀彿鍦ㄥ埆澶勭櫥闄嗭紝琚涪涓嬬嚎 + UserCenterLogic.ReLoginAgain(UserCenterResourse.UserInfo.Account, false); + }); + return; + } + } + #endregion + } +} -- Gitblit v1.8.0