Browse Source

相册在分享出保存到本地报错

zhaoyang 2 years ago
parent
commit
32e8cfd072

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

@@ -135,6 +135,7 @@ namespace GFGGame
                 {
                     Texture2D texture = (request.downloadHandler as DownloadHandlerTexture).texture;
                     data.Ntexture = new NTexture(texture);
+                    data.Bytes = texture.EncodeToJPG();
                 }
             }
         }