wxr
2023-07-20 c135877a65244706008b6215b2734bb37bbfb7f4
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
@@ -433,6 +433,8 @@
                    var pack = pm.GetSceneInfo(scene.userSceneId);
                    if (pack.Code == StateCode.SUCCESS)
                    {
                        if (pack.Data != null)
                        {
                        var sceneList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Scene>>(pack.Data.ToString());
                        var tempScene = sceneList.Find((obj) => obj.userSceneId == scene.userSceneId);
                        if (tempScene != null)
@@ -441,6 +443,7 @@
                            scene.delay = tempScene.delay;
                            scene.roomIds = tempScene.roomIds;
                            scene.functions = tempScene.functions;
                            }
                        }
                        Application.RunOnMainThread(() =>
                        {
@@ -482,12 +485,19 @@
                    scene.functions.Remove(scenefunction);
                    continue;
                }
                try
                {
                //将spk实体里面的min max值放入场景功能实体里,要不然数据会丢失 2022-06-21 16:06:45
                foreach (var tt in scenefunction.status) {
                    foreach (var tt in scenefunction.status)
                    {
                    tt.min = scenefunction.localFunction.GetAttribute(tt.key).min;
                    tt.max = scenefunction.localFunction.GetAttribute(tt.key).max;
                    tt.valueList = scenefunction.localFunction.GetAttribute(tt.key).value;
                }
                }catch(Exception ex)
                {
                    MainPage.Log($"场景加载功能列表异常:{ex.Message}");
                }
                i++;
                var row = new RowLayout()