zhaoyang 2 年之前
父节点
当前提交
61a507ba08

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -167,6 +167,7 @@ namespace GFGGame
             FriendDataManager.Instance.Clear();
             FriendDataManager.Instance.Clear();
             RedDotController.Instance.Clear();
             RedDotController.Instance.Clear();
             BagDataManager.Instance.Clear();
             BagDataManager.Instance.Clear();
+            PoemPhotoDataManager.Instance.Clear();
             GameGlobal.zoneScene.GetComponent<SessionComponent>()?.Disconnect();
             GameGlobal.zoneScene.GetComponent<SessionComponent>()?.Disconnect();
             GameGlobal.zoneScene.GetComponent<ServerInfosComponent>()?.ServerInfoList?.Clear();
             GameGlobal.zoneScene.GetComponent<ServerInfosComponent>()?.ServerInfoList?.Clear();
             GameGlobal.zoneScene.GetComponent<AccountInfoComponent>()?.Clear();
             GameGlobal.zoneScene.GetComponent<AccountInfoComponent>()?.Clear();
@@ -237,6 +238,7 @@ namespace GFGGame
             MailSProxy.ReqMailCount().Coroutine();
             MailSProxy.ReqMailCount().Coroutine();
             FriendSProxy.ReqAllFriendInfos().Coroutine();
             FriendSProxy.ReqAllFriendInfos().Coroutine();
             RoleInfoSProxy.ReqPersonalInfo().Coroutine();
             RoleInfoSProxy.ReqPersonalInfo().Coroutine();
+            PoemPhotoSProxy.ReqAllPhotoInfos().Coroutine();
 
 
             int storageAutoPlay = StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_AUTO_PLAY);
             int storageAutoPlay = StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_AUTO_PLAY);
             EquipDataCache.cacher.autoPlay = storageAutoPlay <= 0 ? false : true;
             EquipDataCache.cacher.autoPlay = storageAutoPlay <= 0 ? false : true;

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/PhotographDataManager.cs

@@ -338,7 +338,7 @@ namespace GFGGame
         {
         {
 #if UNITY_ANDROID
 #if UNITY_ANDROID
             AndroidJavaObject androidJavaObject = new AndroidJavaObject("com.gfg.gfglibrary.SaveImage"); //设置成我们aar库中的签名+类名
             AndroidJavaObject androidJavaObject = new AndroidJavaObject("com.gfg.gfglibrary.SaveImage"); //设置成我们aar库中的签名+类名
-            androidJavaObject.Call("scanFile", filePath, "已保存至相册"); //这里我们可以设置保存成功弹窗内容
+            androidJavaObject.Call("scanFile", filePath, "已保存至本地"); //这里我们可以设置保存成功弹窗内容
 #endif
 #endif
         }
         }
 
 

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

@@ -55,10 +55,10 @@ namespace GFGGame
         }
         }
 
 
         //获取图片的临时上传地址协议
         //获取图片的临时上传地址协议
-        public static async ETTask<string[]> ReqTempPictureUrl()
+        public static async ETTask<string[]> ReqTempPictureUrl(int pictureType)
         {
         {
             S2C_GetTempPictureUrl response = null;
             S2C_GetTempPictureUrl response = null;
-            response = (S2C_GetTempPictureUrl)await MessageHelper.SendToServer(new C2S_GetTempPictureUrl() { });
+            response = (S2C_GetTempPictureUrl)await MessageHelper.SendToServer(new C2S_GetTempPictureUrl() { PictureType = pictureType });
             if (response != null)
             if (response != null)
             {
             {
                 if (response.Error == ErrorCode.ERR_Success)
                 if (response.Error == ErrorCode.ERR_Success)
@@ -145,6 +145,7 @@ namespace GFGGame
 
 
                     PoemPhotoDataManager.Instance.Add(photoData, sourceType);
                     PoemPhotoDataManager.Instance.Add(photoData, sourceType);
                     EventAgent.DispatchEvent(ConstMessage.POEM_PHOTO_INFOS_CHANGE);
                     EventAgent.DispatchEvent(ConstMessage.POEM_PHOTO_INFOS_CHANGE);
+                    PromptController.Instance.ShowFloatTextPrompt("已保存至相册");
                     return true;
                     return true;
                 }
                 }
             }
             }

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

@@ -66,7 +66,7 @@ namespace GFGGame
             Texture2D tex = this.viewData as Texture2D;
             Texture2D tex = this.viewData as Texture2D;
             byte[] bytes = tex.EncodeToJPG();//将纹理数据,转化成一个jpg图片
             byte[] bytes = tex.EncodeToJPG();//将纹理数据,转化成一个jpg图片
 
 
-            string[] rsp = await PoemPhotoSProxy.ReqTempPictureUrl();
+            string[] rsp = await PoemPhotoSProxy.ReqTempPictureUrl((int)PictureType.jpg);
             if (rsp == null) return;
             if (rsp == null) return;
 
 
             string code = PoemPhotoSProxy.PushToHWCloud(rsp[0], bytes);
             string code = PoemPhotoSProxy.PushToHWCloud(rsp[0], bytes);