diff --git a/lua_probject/base_project/Game/View/FamilyView.lua b/lua_probject/base_project/Game/View/FamilyView.lua index efd4e073..eac2a9a2 100644 --- a/lua_probject/base_project/Game/View/FamilyView.lua +++ b/lua_probject/base_project/Game/View/FamilyView.lua @@ -70,22 +70,6 @@ end function M:ShareWx() local familyInviteFamilyView = FamilyInviteFamilyView.new() familyInviteFamilyView:Show() - local fgCtr = ControllerManager.GetController(NewGroupController) - fgCtr:FG_GroupMembers12( - self._group.id, - 0, - 6, - 2, - 2, - function(res) - ViewUtil.CloseModalWait() - if res.ReturnCode ~= 0 then - ViewUtil.ErrorTip(res.ReturnCode, '获取成员列表失败') - else - - end - end - ) end function M:CreateFamily(frist) @@ -129,7 +113,7 @@ end function M:ChangeNumber(fgCtr, group_id, limit, num, minus_only, sort_type) local list_familyNumber = self._view:GetChild('list_familyNumber') list_familyNumber:SetVirtual() - fgCtr:FG_GroupMembers(group_id, limit, num, minus_only, sort_type, function(res) + fgCtr:FG_GroupMembers12(group_id, limit, num, 2, 2, function(res) local members = self._group.members -- print("==========================res.Data.members") pt(self._group.members) @@ -139,8 +123,9 @@ function M:ChangeNumber(fgCtr, group_id, limit, num, minus_only, sort_type) else list_familyNumber.itemRenderer = function(index, obj) obj:GetChild('title').text = members[index + 1].nick + obj:GetController('type').selectedIndex = members[index + 1].online and members[index + 1].online or 0 end - list_familyNumber.numItems = res.Data.member_num + list_familyNumber.numItems = #self._group.members return 1 end end) @@ -363,6 +348,8 @@ function M:OnUpdate() end if not self.lastType or self.lastType - heatTime > 30 then fgCtr:FG_SetFamilyHeartbeat(self._group.id, DataManager.SelfUser.account_id, function(res) + self:ChangeNumber(fgCtr, self._group.id, 0, self._group.total_member_num, false, + 1) pt(res) end) self.lastType = heatTime diff --git a/lua_probject/base_project/Game/View/Lobby/LobbyAuthenticateView.lua b/lua_probject/base_project/Game/View/Lobby/LobbyAuthenticateView.lua index f15ce2cf..3dd62adf 100644 --- a/lua_probject/base_project/Game/View/Lobby/LobbyAuthenticateView.lua +++ b/lua_probject/base_project/Game/View/Lobby/LobbyAuthenticateView.lua @@ -49,7 +49,7 @@ function M:init(url) local btn_send = view:GetChild('btn_send') btn_send.onClick:Set(function() local _data = {} - _data.type = 6 + _data.type = 1 _data.real_info = {} _data.real_info.name = input_name.text _data.real_info.ID = input_idInfo.text