zhaoyang 2 năm trước cách đây
mục cha
commit
4bf6772d0b

+ 3 - 3
GameClient/Assets/Game/HotUpdate/ServerProxy/PoemPhotoSProxy.cs

@@ -79,12 +79,12 @@ namespace GFGGame
 
                 if (www.result != UnityWebRequest.Result.Success)
                 {
-                    Debug.Log(www.error);
-                    callback?.Invoke();
+                    Debug.Log("上传失败:" + www.error);
                 }
                 else
                 {
-                    Debug.Log("Upload complete!");
+                    Debug.Log("上传成功");
+                    callback?.Invoke();
                 }
             }
 

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Poem/PoemPhotoPreView.cs

@@ -53,8 +53,8 @@ namespace GFGGame
         {
             base.OnShown();
             _curIndex = (int)(this.viewData as object[])[0];
-            _photoInfos = (this.viewData as object[])[1] as List<PoemPhotoData>;
-
+            List<PoemPhotoData> photoInfos = (this.viewData as object[])[1] as List<PoemPhotoData>;
+            _photoInfos = new List<PoemPhotoData>(photoInfos.ToArray());
             _ui.m_list.numItems = _photoInfos.Count;
             _ui.m_list.height = _ui.m_list.GetChildAt(0).height;
             UpdateView();