get_online_member协议

master
1076390229 2025-07-28 22:42:58 +08:00
parent 6feed6a28e
commit f9657deec7
6 changed files with 38 additions and 9 deletions

View File

@ -1688,4 +1688,14 @@ function M:FG_Get_Apply_Count(callback)
_client:send(Protocol.WEB_FG_APPLYCOUNT, _data, function(res)
callback(res)
end)
end
-- FG_Get_Online_Member
function M:FG_Get_Online_Member(groupId, callback)
local _data = {}
_data.id = groupId
local _client = ControllerManager.GroupClient
_client:send(Protocol.WEB_FG_APPLYCOUNT, _data, function(res)
callback(res)
end)
end

View File

@ -84,8 +84,19 @@ function FamilyAuditNumber:ClickBtn(isAllow, uid)
end
local group = DataManager.groups:get(self._group.id)
group.joins = group.joins - 1
self:Show()
self:ChangeOther()
for _, joinInfo in pairs(group.joinsData) do
if joinInfo.id == uid then
group.joinsData[_] = nil
end
end
self:Reflash()
local view = BaseView.FindView("FamilyMainView")
if view then
view:ChangeOther()
end
end
end)
end

View File

@ -23,7 +23,7 @@ function FamilyEventView.new(root)
mgr_ctr:AddEventListener(GroupMgrEvent.InviteResponse, handler(self, self._evtInviteResponse))
mgr_ctr:AddEventListener(GroupMgrEvent.IsOpenChatRoom, handler(self, self._evtIsOpenChatRoom))
mgr_ctr:AddEventListener(GroupMgrEvent.ChatRoomData, handler(self, self._evtChatRoomData))
--mgr_ctr:AddEventListener(GroupMgrEvent.OnNewApply, handler(self, self._evtOnNewApply))
mgr_ctr:AddEventListener(GroupMgrEvent.OnNewApply, handler(self, self._evtOnNewApply))
mgr_ctr:AddEventListener(GroupMgrEvent.OnNewRecord, handler(self, self._evtOnNewRecord))
mgr_ctr:AddEventListener(GroupMgrEvent.Onpush_assistant, handler(self, self._evtOnPush_assistant))
mgr_ctr:AddEventListener(GroupMgrEvent.OnMemberState, handler(self, self._evtOnMemberState))
@ -49,7 +49,7 @@ function M:RemoveAll()
mgr_ctr:RemoveEventListener(GroupMgrEvent.InviteResponse, handler(self, self._evtInviteResponse))
mgr_ctr:RemoveEventListener(GroupMgrEvent.IsOpenChatRoom, handler(self, self._evtIsOpenChatRoom))
mgr_ctr:RemoveEventListener(GroupMgrEvent.ChatRoomData, handler(self, self._evtChatRoomData))
--mgr_ctr:RemoveEventListener(GroupMgrEvent.OnNewApply, handler(self, self._evtOnNewApply))
mgr_ctr:RemoveEventListener(GroupMgrEvent.OnNewApply, handler(self, self._evtOnNewApply))
mgr_ctr:RemoveEventListener(GroupMgrEvent.OnNewRecord, handler(self, self._evtOnNewRecord))
mgr_ctr:RemoveEventListener(GroupMgrEvent.Onpush_assistant, handler(self, self._evtOnPush_assistant))
mgr_ctr:RemoveEventListener(GroupMgrEvent.OnMemberState, handler(self, self._evtOnMemberState))
@ -139,7 +139,7 @@ function M:_evtNewMailTip(...)
print("family event _evtNewMailTip")
end
--[[
function M:_evtOnNewApply(...)
print("_evtOnNewApply")
local arg = { ... }
@ -150,9 +150,14 @@ function M:_evtOnNewApply(...)
return
end
view:ChangeOther()
self._child_familyAuditNumber:OnNewApply(arg)
local AuditNumber = BaseView.FindView("FamilyAuditNumber")
if AuditNumber then
AuditNumber:OnNewApply(arg)
end
end
]]
function M:_evtInviteResponse(...)
local arg = { ... }

View File

@ -485,6 +485,8 @@ function M:OnEnterGroupCallBack()
ViewUtil.CloseModalWait()
self:ReflashChatRoomRedPoint()
fgCtr:FG_Get_Online_Member(self._group.id, callback)
end
function M:UpdateFamilyRoom(fgCtr, id)

View File

@ -38,6 +38,7 @@ GraphicsSettings:
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16003, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0}

View File

@ -178,8 +178,8 @@ PlayerSettings:
buildNumber:
iPhone: 1
AndroidBundleVersionCode: 12
AndroidMinSdkVersion: 26
AndroidTargetSdkVersion: 26
AndroidMinSdkVersion: 21
AndroidTargetSdkVersion: 30
AndroidPreferredInstallLocation: 1
aotOptions:
stripEngineCode: 0