From b847c06d8617efb2cbbad6f11b0344b779138e92 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 14 十月 2024 18:03:45 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/wjc' into feature/v2.7_迭代 --- HDL_ON/Entity/Function/Function.cs | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index 8d7ff90..5ae0598 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -669,14 +669,20 @@ result = ApiUtlis.Ins.HttpRequest.CancelCollectDevice(deviceId).Code; } } - //鎻愮ず閿欒 if (result != StateCode.SUCCESS) { - Application.RunOnMainThread(() => + if (!Common.ApiUtlis.Ins.hadInternet) { - collect = !collect; - IMessageCommon.Current.ShowErrorInfoAlter(result); - }); + this.SaveFunctionFile(); + } + else + { + Application.RunOnMainThread(() => + { + collect = !collect; + IMessageCommon.Current.ShowErrorInfoAlter(result); + }); + } } else { @@ -686,6 +692,7 @@ UI.HomePage.RefreshFunctionView(); }); } + }) { IsBackground = true }.Start(); } -- Gitblit v1.8.0