Browse Source

更新保存素材提示代码

蓝色星空 1 year ago
parent
commit
b8224ef36a
1 changed files with 13 additions and 2 deletions
  1. 13 2
      Assets/Scripts/UI/EdirPanel/UIMaterialsPanel.cs

+ 13 - 2
Assets/Scripts/UI/EdirPanel/UIMaterialsPanel.cs

@@ -292,10 +292,21 @@ public class UIMaterialsPanel : UIPanelBase, EventObserver
             return;
         }
 
-        Debug.Log("SaveCallBack:  " + message);
+        //Debug.LogError("SaveCallBack:  " + message);
         JObject jObject = JObject.Parse(message);
         string str = jObject["message"].ToString();
-
+        if(str!="更新成功")
+        {
+            InstantiateCommand Command =new InstantiateCommand(
+                InstantiateSystem.Instance.BlueObject.WarningPopUp,
+                InstantiateSystem.Instance.BlueObject.NetErrorText);
+            CommandSystem.Instance.Send(Command);
+            return;
+        }
+        else
+        {
+            Debug.Log("更新成功");
+        }
         UIManager.Instance.ShowUI(UINameConfig.LoadingPanel, typeof(LoadingPanel), (int)ELoadState.SaveSpoitDataEnd);
         ((LoadingPanel)UIManager.Instance.GetUI(UINameConfig.LoadingPanel)).TextStr = str;
     }