From c00da77d00a479fa5d022346a6d9075f90a5c087 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期六, 14 九月 2024 10:05:34 +0800 Subject: [PATCH] 退出登录时间调整,新风,音乐 --- HDL_ON/UI/UI0-Stan/Logic/HdlMessageLogic.cs | 41 +++++++++++++++++++++++++++++++++++------ 1 files changed, 35 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI0-Stan/Logic/HdlMessageLogic.cs b/HDL_ON/UI/UI0-Stan/Logic/HdlMessageLogic.cs index 615bb1d..110980b 100644 --- a/HDL_ON/UI/UI0-Stan/Logic/HdlMessageLogic.cs +++ b/HDL_ON/UI/UI0-Stan/Logic/HdlMessageLogic.cs @@ -82,16 +82,45 @@ { this.ShowMassage(ShowMsgType.Error, "System Error!", () => { - //string msg = ex.Message + "\r\n"; - //msg += ex.StackTrace; + string msg = ex.Message + "\r\n"; + msg += ex.StackTrace; - //var form = new HideOptionFileContentForm(); - //form.AddForm(string.Empty); - //form.SetTextContent(msg); + var form = new HideOptionFileContentForm(); + form.AddForm(string.Empty); + form.SetTextContent(msg); - }, "ok"); + }, "ok"); + + //涓婃姤鏃ュ織鏈嶅姟鍣� + new System.Threading.Thread(async () => + { + await Common.AliyunLog.AliyunLogClient.PostLogs("App绋嬪簭閿欒", ex.Message + "\r\n" + ex.StackTrace); + }) + { IsBackground = true }.Start(); + } + + /// <summary> + /// 鏄剧ずApp绋嬪簭鍑虹幇浜嗚嚧鍛介敊璇� + /// </summary> + /// <param name="ex"></param> + public void ShowAppProgramIsError(string msg) + { + this.ShowMassage(ShowMsgType.Error, "System Error!", () => + { + var form = new HideOptionFileContentForm(); + form.AddForm(string.Empty); + form.SetTextContent(msg); + + }, "ok"); + //涓婃姤鏃ュ織鏈嶅姟鍣� + new System.Threading.Thread(async () => + { + await Common.AliyunLog.AliyunLogClient.PostLogs("App绋嬪簭閿欒", msg); + }) + { IsBackground = true }.Start(); } + #endregion } } -- Gitblit v1.8.0