From a40848272e33822f72a7fe0310f079717bf73f23 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期五, 18 十月 2024 16:21:39 +0800 Subject: [PATCH] 修复金茂科技系统,金茂光伏问题 --- HDL_ON/Entity/Function/Scene.cs | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs index 1e92f33..51e984f 100644 --- a/HDL_ON/Entity/Function/Scene.cs +++ b/HDL_ON/Entity/Function/Scene.cs @@ -412,14 +412,24 @@ { result = ApiUtlis.Ins.HttpRequest.CancelCollectScene(userSceneId); } - //鎻愮ず閿欒 if (result != StateCode.SUCCESS) { - Application.RunOnMainThread(() => + if (!Common.ApiUtlis.Ins.hadInternet) { - collect = !collect; - IMessageCommon.Current.ShowErrorInfoAlter(result); - }); + this.SaveSceneFile(); + } + else + { + Application.RunOnMainThread(() => + { + collect = !collect; + IMessageCommon.Current.ShowErrorInfoAlter(result); + }); + } + } + else + { + this.SaveSceneFile(); } }) { IsBackground = true }.Start(); @@ -729,6 +739,7 @@ /// <summary> /// 灞炴�х殑鍊煎垪琛� /// </summary> + [Newtonsoft.Json.JsonIgnore] public List<string> valueList = new List<string>(); /// <summary> /// 灞炴�у悕绉版樉绀烘枃鏈� @@ -794,6 +805,7 @@ return text; } + [Newtonsoft.Json.JsonIgnore] public string UintString = ""; /// <summary> -- Gitblit v1.8.0