浏览代码

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

zhaoyang 2 年之前
父节点
当前提交
32e8cfd072
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/PictureStorageHelper.cs

+ 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();
                 }
             }
         }