zhaoyang 2 سال پیش
والد
کامیت
592161ad0b

+ 2 - 2
GameClient/Assets/Game/HotUpdate/ServerProxy/PoemGallerySProxy.cs

@@ -87,7 +87,7 @@ namespace GFGGame
         }
 
         //请求投稿画廊作品
-        public static async ETTask<string[]> ReqUpLoadGalleryWorks()
+        public static async ETTask<object[]> ReqUpLoadGalleryWorks()
         {
             S2C_RequestUpLoadGalleryWorks response = null;
             response = (S2C_RequestUpLoadGalleryWorks)await MessageHelper.SendToServer(new C2S_RequestUpLoadGalleryWorks());
@@ -96,7 +96,7 @@ namespace GFGGame
                 if (response.Error == ErrorCode.ERR_Success)
                 {
                     // PictureStorageHelper.PushToHWCloud(response.TempPictureUrl)
-                    return new string[] { response.TempPictureUrl, response.WorksId.ToString() };
+                    return new object[] { response.TempPictureUrl, response.WorksId.ToString() };
                     // return true;
                 }
             }

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographView.cs

@@ -581,13 +581,13 @@ namespace GFGGame
                 .SetLeftButton(true, "否").SetRightButton(true, "是", async (object data) =>
                 {
                     ViewManager.Show<ModalStatusView>("上传中...");
-                    string[] rsp = await PoemGallerySProxy.ReqUpLoadGalleryWorks();
+                    object[] rsp = await PoemGallerySProxy.ReqUpLoadGalleryWorks();
                     if (rsp == null) return;
                     byte[] bytes = tex.EncodeToJPG();
-                    bool pushResult = await PictureStorageHelper.PushToHWCloud(rsp[0], bytes);
+                    bool pushResult = await PictureStorageHelper.PushToHWCloud(rsp[0].ToString(), bytes);
                     if (!pushResult) return;
 
-                    bool result = await PoemGallerySProxy.ReqNoticeGalleryWorksUploaded(int.Parse(rsp[1]));
+                    bool result = await PoemGallerySProxy.ReqNoticeGalleryWorksUploaded((long)(rsp[1]));
                     if (result)
                     {
                         ViewManager.Hide<ModalStatusView>();