From 439d05654176664111063362ac5c98c772910faa Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期四, 12 九月 2024 12:05:01 +0800
Subject: [PATCH] 异常信息优化
---
HDL_ON/Common/AliyunLog/AliyunLogClient.cs | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/HDL_ON/Common/AliyunLog/AliyunLogClient.cs b/HDL_ON/Common/AliyunLog/AliyunLogClient.cs
index 5a12209..c73b943 100644
--- a/HDL_ON/Common/AliyunLog/AliyunLogClient.cs
+++ b/HDL_ON/Common/AliyunLog/AliyunLogClient.cs
@@ -91,6 +91,13 @@
// }
//}
+
+ /// <summary>
+ /// 鏃ュ織鎺ㄩ��
+ /// </summary>
+ /// <param name="topic">鎺ㄩ�佹爣棰�</param>
+ /// <param name="msg">鎺ㄩ�佷俊鎭�</param>
+ /// <returns></returns>
public static async Task PostLogs(string topic, string msg)
{
if (client == null)
@@ -121,9 +128,11 @@
Contents = new Dictionary<string, string>
{
{"id", DateTime.Now.Ticks.ToString()},
- {"homeid", Entity.DB_ResidenceData.Instance.CurrentRegion.id},
+ {"userAccount", UserInfo.Current.AccountString},
{"userid", UserInfo.Current.ID},
{"userName", UserInfo.Current.userName},
+ {"homeid", Entity.DB_ResidenceData.Instance.CurrentRegion.id},
+ {"server", Entity.DB_ResidenceData.Instance.CurrentRegion.regionUrl},
{"message", msg},
}
}
--
Gitblit v1.8.0