Selaa lähdekoodia

推荐好友协议修改

zhangyuqian 1 vuosi sitten
vanhempi
commit
4097015879

+ 2 - 2
GameClient/Assets/Game/HotUpdate/ServerProxy/FriendSProxy.cs

@@ -293,10 +293,10 @@ namespace GFGGame
         }
 
         //请求推荐好友
-        public static async ETTask<bool> ReqRecommendFriends()
+        public static async ETTask<bool> ReqRecommendFriends(long roleId = 1 )
         {
             S2C_GetRecommendFriends response = null;
-            response = (S2C_GetRecommendFriends)await MessageHelper.SendToServer(new C2S_GetRecommendFriends());
+            response = (S2C_GetRecommendFriends)await MessageHelper.SendToServer(new C2S_GetRecommendFriends() { RoleId = roleId });
             if (response != null)
             {
                 if (response.Error == ErrorCode.ERR_Success)

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

@@ -154,7 +154,7 @@ namespace GFGGame
             _ui.m_txtTips.text = "推荐好友";
             _ui.m_listSearch.numItems = 0;
 
-            bool result = await FriendSProxy.ReqRecommendFriends();
+            bool result = await FriendSProxy.ReqRecommendFriends(RoleDataManager.roleId);
             if (result)
             {
                 _searchDatas = FriendDataManager.Instance.RecommendDatas;