wxr
2024-09-30 09c653a3dc33474d26427090834481ef378b57bc
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();
        }