wxr
2024-09-19 856667ac31eba65dfa0a38c023e05c869e98ceda
场景

添加场景
编辑场景增加错误数据类型转译的异常捕获
阿里云日志捕获到异常了
2个文件已修改
24 ■■■■■ 已修改文件
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
@@ -462,7 +462,12 @@
                    };
                    row.AddChidren(btnFunctionDelayInfo);
                    if (Convert.ToInt32(scenefunction.delay) > 0)
                    try
                    {
                        int delayTime = 0;
                        int.TryParse(scenefunction.delay, out delayTime);
                        if (!string.IsNullOrEmpty(scenefunction.delay) && delayTime > 0)
                    {
                        btnFunctionDelayInfo.Text = Language.StringByID(StringId.Delay) + " " + new Scene() { delay = scenefunction.delay }.GetDelayText();
                    }
@@ -470,6 +475,11 @@
                    {
                        btnFunctionDelayInfo.Text = Language.StringByID(StringId.NoDelay);
                    }
                    }
                    catch (Exception ex)
                    {
                        MainPage.Log("Error", $"场景编辑,转译数据异常:{ex.StackTrace}");
                    }
                    var btnFunctionFloorAndRoom = new Button()
                    {
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
@@ -595,7 +595,12 @@
                    };
                    row.AddChidren(btnFunctionDelayInfo);
                    if (!string.IsNullOrEmpty(scenefunction.delay) && Convert.ToInt32(scenefunction.delay) > 0)
                    try
                    {
                        int delayTime = 0;
                        int.TryParse(scenefunction.delay, out delayTime);
                        if (!string.IsNullOrEmpty(scenefunction.delay) && delayTime > 0)
                    {
                        btnFunctionDelayInfo.Text = Language.StringByID(StringId.Delay) + " " + new Scene() { delay = scenefunction.delay }.GetDelayText();
                    }
@@ -603,6 +608,11 @@
                    {
                        btnFunctionDelayInfo.Text = Language.StringByID(StringId.NoDelay);
                    }
                    }
                    catch (Exception ex)
                    {
                        MainPage.Log("Error", $"场景编辑,转译数据异常:{ex.StackTrace}");
                    }
                    var btnFunctionFloorAndRoom = new Button()