From 09c653a3dc33474d26427090834481ef378b57bc Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 30 九月 2024 17:48:17 +0800
Subject: [PATCH] 离线保存文件

---
 HDL_ON/Entity/Function/Scene.cs |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs
index 585d39d..51e984f 100644
--- a/HDL_ON/Entity/Function/Scene.cs
+++ b/HDL_ON/Entity/Function/Scene.cs
@@ -412,14 +412,20 @@
                 {
                     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
                 {

--
Gitblit v1.8.0