zhaoyang %!s(int64=2) %!d(string=hai) anos
pai
achega
781b26a81b

+ 0 - 24
GameClient/Assets/Game/HotUpdate/ServerProxy/FriendSProxy.cs

@@ -260,31 +260,7 @@ namespace GFGGame
             return false;
         }
 
-        //请求其他玩家详细信息
-        public static async ETTask<RoleInfoDetailData> ReqOtherRoleDetailInfo(long friendId)
-        {
-            S2C_GetOtherRoleDetailInfo response = null;
-            response = (S2C_GetOtherRoleDetailInfo)await MessageHelper.SendToServer(new C2S_GetOtherRoleDetailInfo() { RoleId = friendId });
-            if (response != null)
-            {
-                if (response.Error == ErrorCode.ERR_Success)
-                {
-                    RoleInfoDetailData roleInfoDetail = new RoleInfoDetailData();
-                    roleInfoDetail.slogan = response.Signature;
-                    if (response.CustomSuit != null)
-                    {
-                        roleInfoDetail.customSuitData = new CustomSuitData(response.CustomSuit.Pos);
-                        roleInfoDetail.customSuitData.bg = response.CustomSuit.BgId;
-                        roleInfoDetail.customSuitData.suitId = response.CustomSuit.SuitId;
-                        roleInfoDetail.customSuitData.equipDatas = response.CustomSuit.EquipIds;
-                        roleInfoDetail.customSuitData.pic = response.CustomSuit.Pic;
-                    }
 
-                    return roleInfoDetail;
-                }
-            }
-            return null;
-        }
 
         //请求搜索其他玩家
         public static async ETTask<bool> ReqSearchRole(string roleName)

+ 25 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/RoleInfoSProxy.cs

@@ -20,7 +20,32 @@ namespace GFGGame
             }
             return false;
         }
+        //请求其他玩家详细信息
+        public static async ETTask<RoleInfoDetailData> ReqOtherRoleDetailInfo(long friendId)
+        {
+            S2C_GetOtherRoleDetailInfo response = null;
+            response = (S2C_GetOtherRoleDetailInfo)await MessageHelper.SendToServer(new C2S_GetOtherRoleDetailInfo() { RoleId = friendId });
+            if (response != null)
+            {
+                if (response.Error == ErrorCode.ERR_Success)
+                {
+                    RoleInfoDetailData roleInfoDetail = new RoleInfoDetailData();
+                    roleInfoDetail.slogan = response.Signature;
+                    roleInfoDetail.RoleLvl = response.RoleLvl;
+                    if (response.CustomSuit != null)
+                    {
+                        roleInfoDetail.customSuitData = new CustomSuitData(response.CustomSuit.Pos);
+                        roleInfoDetail.customSuitData.bg = response.CustomSuit.BgId;
+                        roleInfoDetail.customSuitData.suitId = response.CustomSuit.SuitId;
+                        roleInfoDetail.customSuitData.equipDatas = response.CustomSuit.EquipIds;
+                        roleInfoDetail.customSuitData.pic = response.CustomSuit.Pic;
+                    }
 
+                    return roleInfoDetail;
+                }
+            }
+            return null;
+        }
         //修改个人签名
         public static async ETTask<string> ReqModifySlogan(string slogan)
         {

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Friend/FriendView.cs

@@ -236,7 +236,7 @@ namespace GFGGame
             if (index >= 0)
             {
                 long roleId = FriendDataManager.Instance.FriendDatas[index].roleInfo.roleId;
-                RoleInfoDetailData roleInfoDetail = await FriendSProxy.ReqOtherRoleDetailInfo(roleId);
+                RoleInfoDetailData roleInfoDetail = await RoleInfoSProxy.ReqOtherRoleDetailInfo(roleId);
                 if (roleInfoDetail != null)
                 {
                     UpdateScene(roleInfoDetail.customSuitData);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Poem/PoemGalleryPreviewView.cs

@@ -66,7 +66,7 @@ namespace GFGGame
             _ui.m_btnVote.title = _galleryData.VoteCount.ToString();
             _ui.m_btnAddFriend.visible = _galleryData.AuthorId != RoleDataManager.roleId && FriendDataManager.Instance.GetFriendDataById(_galleryData.AuthorId) == null;
 
-            RoleInfoDetailData roleInfo = await FriendSProxy.ReqOtherRoleDetailInfo(_galleryData.AuthorId);
+            RoleInfoDetailData roleInfo = await RoleInfoSProxy.ReqOtherRoleDetailInfo(_galleryData.AuthorId);
             if (roleInfo != null)
             {
                 _ui.m_comHead.m_txtLvl.text = roleInfo.RoleLvl.ToString();

+ 3 - 4
GameClient/Assets/Game/HotUpdate/Views/Poem/PoemGalleryView.cs

@@ -352,7 +352,7 @@ namespace GFGGame
         }
         private void UpdateGalleryList()
         {
-            if (_ui.m_comNormal.m_c1.selectedIndex == RecommendType.RANK)
+            if (_tabIndex == TabType.RECOVER && _subtabIndex == RecommendType.RANK)
             {
                 _ui.m_comNormal.m_listRank.numItems = _galleryDatas.Count;
             }
@@ -368,11 +368,10 @@ namespace GFGGame
                     _list.numItems = (_galleryDatas.Count + 1) / 2;
                     _list1.numItems = (_galleryDatas.Count - 1) / 2;
                 }
+                _list.ResizeToFit();
+                _list1.ResizeToFit();
             }
 
-            _list.ResizeToFit();
-            _list1.ResizeToFit();
-
             UpdateView();
             ResetPullRelease();
         }