zhaoyang 2 years ago
parent
commit
f7fd69bd64

+ 1 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/PoemPhotoSProxy.cs

@@ -144,6 +144,7 @@ namespace GFGGame
             {
                 yield return request.SendWebRequest();
                 Texture2D texture = (request.downloadHandler as DownloadHandlerTexture).texture;
+                poemPhotoData.Bytes = texture.EncodeToJPG();
                 poemPhotoData.Ntexture = new NTexture(texture);
             }
 

+ 1 - 20
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographSaveView.cs

@@ -90,32 +90,13 @@ namespace GFGGame
                 {
                     if (list[i].PictureId == addResult)
                     {
+                        list[i].Bytes = bytes;
                         list[i].Ntexture = new NTexture(tex);
 
                         break;
                     }
                 }
             }
-            // Timers.inst.StartCoroutine(PoemPhotoSProxy.PushToHWCloud(rsp[0], bytes, async () =>
-            // {
-            //     long result = await PoemPhotoSProxy.ReqAddTophoto(rsp[1], (int)PictureSourceType.PersonalAlbum);
-
-            //     if (result > 0)
-            //     {
-            //         List<PoemPhotoData> list = PoemPhotoDataManager.Instance.PersonalPhotoInfos;
-
-            //         for (int i = 0; i < list.Count; i++)
-            //         {
-            //             if (list[i].PictureId == result)
-            //             {
-            //                 list[i].Ntexture = new NTexture(tex);
-
-            //                 break;
-            //             }
-            //         }
-            //     }
-            // }));
-
         }
     }
 }