From 1ef5d4c4dc6c31ab83a072ef6f639ab9d6c3f6f0 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 16 四月 2024 10:22:33 +0800
Subject: [PATCH] 图片更新
---
HDL_ON/Common/Utlis.cs | 37 ++++++++++++++++++++++++++++++++-----
1 files changed, 32 insertions(+), 5 deletions(-)
diff --git a/HDL_ON/Common/Utlis.cs b/HDL_ON/Common/Utlis.cs
index 13a4af0..e93393c 100644
--- a/HDL_ON/Common/Utlis.cs
+++ b/HDL_ON/Common/Utlis.cs
@@ -20,11 +20,38 @@
#endif
}
- /// <summary>
- /// 寮圭獥鎻愮ず
- /// </summary>
- /// <param name="mes"></param>
- public static void ShowAlertOnMainThread(string mes)
+ /// <summary>
+ /// 鍏ㄥ眬鎵撳嵃
+ /// </summary>
+ /// <param name="tag">鎻忚堪淇℃伅</param>
+ /// <param name="url">璇锋眰鍦板潃(鍙互鏍规嵁鍦板潃杩囨护璇ユ暟鎹�)</param>
+ /// <param name="content">淇℃伅鍐呭</param>
+ public static void WriteLine(string tag, string url, string content)
+ {
+ return;
+#if DEBUG
+ if (url == "")
+ {
+ return;
+ }
+ if (!string.IsNullOrEmpty(content))
+ {
+ if (content.StartsWith("{") && content.EndsWith("}"))
+ {
+ //瀹屽叏鏄负浜嗘墦鍗板ソ鐪嬩竴鐐�,娌$壒娈婃剰涔�;
+ content = Newtonsoft.Json.JsonConvert.DeserializeObject(content)?.ToString();
+ }
+ }
+ string text = tag + "======" + url + "\r\n" + content;
+ Console.WriteLine(text);
+#endif
+ }
+
+ /// <summary>
+ /// 寮圭獥鎻愮ず
+ /// </summary>
+ /// <param name="mes"></param>
+ public static void ShowAlertOnMainThread(string mes)
{
Application.RunOnMainThread(() => {
new Alert("", mes, Language.StringByID(StringId.Close)).Show();
--
Gitblit v1.8.0