wxr
2024-09-12 439d05654176664111063362ac5c98c772910faa
异常信息优化
1个文件已添加
4个文件已修改
62 ■■■■ 已修改文件
.idea/workspace.xml 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL-ON_iOS/AppDelegate.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/Common/AliyunLog/AliyunLogClient.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/DAL/Server/HttpUtil.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/MainPage.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
.idea/workspace.xml
New file
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="AutoImportSettings">
    <option name="autoReloadType" value="NONE" />
  </component>
  <component name="ChangeListManager">
    <list default="true" id="cf0246ae-9d48-4043-85a6-ed222e82c849" name="Changes" comment="">
      <change beforePath="$PROJECT_DIR$/HDL-ON_iOS/AppDelegate.cs" beforeDir="false" afterPath="$PROJECT_DIR$/HDL-ON_iOS/AppDelegate.cs" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/HDL_ON/Common/AliyunLog/AliyunLogClient.cs" beforeDir="false" afterPath="$PROJECT_DIR$/HDL_ON/Common/AliyunLog/AliyunLogClient.cs" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/HDL_ON/DAL/Server/HttpUtil.cs" beforeDir="false" afterPath="$PROJECT_DIR$/HDL_ON/DAL/Server/HttpUtil.cs" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/HDL_ON/UI/MainPage.cs" beforeDir="false" afterPath="$PROJECT_DIR$/HDL_ON/UI/MainPage.cs" afterDir="false" />
    </list>
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
  </component>
  <component name="ProjectId" id="2lwzDA5wL1ox0Tq2CH7Wy9DYWWF" />
  <component name="ProjectViewState">
    <option name="hideEmptyMiddlePackages" value="true" />
    <option name="showLibraryContents" value="true" />
  </component>
  <component name="PropertiesComponent"><![CDATA[{
  "keyToString": {
    "RunOnceActivity.OpenProjectViewOnStart": "true",
    "RunOnceActivity.ShowReadmeOnStart": "true",
    "RunOnceActivity.cidr.known.project.marker": "true",
    "cidr.known.project.marker": "true",
    "dart.analysis.tool.window.visible": "false",
    "last_opened_file_path": "/Users/kaede/Desktop/Projcect/OnPro"
  }
}]]></component>
  <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="cf0246ae-9d48-4043-85a6-ed222e82c849" name="Changes" comment="" />
      <created>1726105805372</created>
      <option name="number" value="Default" />
      <option name="presentableId" value="Default" />
      <updated>1726105805372</updated>
    </task>
    <servers />
  </component>
</project>
HDL-ON_iOS/AppDelegate.cs
@@ -271,14 +271,14 @@
            AppDomain.CurrentDomain.UnhandledException += (sender, e) => {
                if(e.ExceptionObject is Exception exception)
                {
                    MainPage.Log("error", "未处理的异常:" + exception.Message + "\r\nStackTrace: " + exception.StackTrace);
                    MainPage.Log("error", "未处理的异常:" + exception.Message + "StackTrace: " + exception.StackTrace);
                }
            };
            TaskScheduler.UnobservedTaskException += (sender, e) => {
                if (e.Exception is Exception exception)
                {
                    MainPage.Log("error", "未处理的异常:" + exception.Message + "\r\nStackTrace: " + exception.StackTrace);
                    MainPage.Log("error", "未处理的异常:" + exception.Message + "StackTrace: " + exception.StackTrace);
                }
            };
            #endregion
HDL_ON/Common/AliyunLog/AliyunLogClient.cs
@@ -128,10 +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},
                                {"server", DAL.Server.HttpUtil.GlobalRequestHttpsHost},
                                {"homeid", Entity.DB_ResidenceData.Instance.CurrentRegion.id},
                                {"server", Entity.DB_ResidenceData.Instance.CurrentRegion.regionUrl},
                                {"message", msg},
                            }
                        }
HDL_ON/DAL/Server/HttpUtil.cs
@@ -251,7 +251,7 @@
                }
                else
                {
                    HDL_ON.Utlis.WriteLine($"接口异常:{requestFullUrl} \r\n"+response.Content);
                    MainPage.Log("Error", $"接口异常:{requestFullUrl} \r\n" + response.Content);
                    if(response.Content!= null)
                    {
                        try
@@ -270,7 +270,7 @@
            }
            catch (Exception ex)
            {
                HDL_ON.Utlis.WriteLine(ex.Message);
                MainPage.Log("Error", $"接口异常x:{ex.StackTrace}");
                return new ResponsePackNew() { Code = StateCode.NETWORK_ERROR ,message = Language.StringByID(StringId.FailedRequestServer) };
            }
HDL_ON/UI/MainPage.cs
@@ -215,7 +215,7 @@
            }
            catch (Exception ex)
            {
                Log("root erorr : " + ex.Message);
                Log("Error", "root erorr : " + ex.StackTrace);
            }
            finally
            {