From 16bea1d248f0010049bceaa562939297fa26b130 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期四, 25 七月 2024 15:27:21 +0800
Subject: [PATCH] Merge branch 'Dev-Branch-2024' into wjc
---
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