bug修改

master
DESKTOP-7R8JEQQ\k 2025-07-04 21:17:27 +08:00
parent 9bdb8aa28b
commit f8f5ed1c3e
4 changed files with 14 additions and 3 deletions

View File

@ -137,6 +137,7 @@ function M:connect(host, groupId, callback)
group.ban_chat1 = res.Data.ban_chat1 group.ban_chat1 = res.Data.ban_chat1
group.ban_chat2 = res.Data.ban_chat2 group.ban_chat2 = res.Data.ban_chat2
group.isvip = res.Data.isvip group.isvip = res.Data.isvip
group.isWatch = res.Data.isWatch
else else
self.code = SocketCode.ExceptionOnConnect self.code = SocketCode.ExceptionOnConnect
_mgr_client:destroy() _mgr_client:destroy()
@ -406,6 +407,7 @@ end
function M:__OnNetEvent(msg) function M:__OnNetEvent(msg)
print("消息ID===>>" .. msg.Command) print("消息ID===>>" .. msg.Command)
pt(msg)
local func = self._eventmap[msg.Command] local func = self._eventmap[msg.Command]
if (func ~= nil) then func(self, msg.Data) end if (func ~= nil) then func(self, msg.Data) end
end end

View File

@ -349,8 +349,6 @@ Protocol = {
WEB_FG_Witness_ROOM = "group/room/join_spectator", WEB_FG_Witness_ROOM = "group/room/join_spectator",
-- 圈子退出观战房间 -- 圈子退出观战房间
WEB_FG_Exit_Witness_ROOM = "group/room/out_spectator", WEB_FG_Exit_Witness_ROOM = "group/room/out_spectator",
-- 设置是否允许观战
WEB_FG_SET_CANWATCH = "group/set_group_guest",
-------------- group-mgr -------------------- -------------- group-mgr --------------------
-- 进入圈子 -- 进入圈子
@ -391,6 +389,8 @@ Protocol = {
FGMGR_EVT_ISOPEN_CHATROOM = "12011", FGMGR_EVT_ISOPEN_CHATROOM = "12011",
-- 进入聊天室 -- 进入聊天室
FGMGR_EVT_ENTER_CHATROOM = "13004", FGMGR_EVT_ENTER_CHATROOM = "13004",
-- 设置是否允许观战
WEB_FG_SET_CANWATCH = "group/set_group_guest",
--end::::::::::::::牌友圈协议:::::::::::::::::::: --end::::::::::::::牌友圈协议::::::::::::::::::::

View File

@ -270,6 +270,8 @@ function FamilyMyFamily:Init()
notice = self.input_text.text notice = self.input_text.text
}, self) }, self)
end end
self.input_text.text = ""
self.tex_changeTitle.text = "修改公告"
self.cWindow.selectedIndex = 1 self.cWindow.selectedIndex = 1
end) end)
@ -280,6 +282,8 @@ function FamilyMyFamily:Init()
name = self.input_text.text name = self.input_text.text
}, self) }, self)
end end
self.input_text.text = ""
self.tex_changeTitle.text = "修改家族名字"
self.cWindow.selectedIndex = 1 self.cWindow.selectedIndex = 1
end) end)
@ -290,6 +294,8 @@ function FamilyMyFamily:Init()
wechatId = self.input_text.text wechatId = self.input_text.text
}, self) }, self)
end end
self.input_text.text = ""
self.tex_changeTitle.text = "修改微信号"
self.cWindow.selectedIndex = 1 self.cWindow.selectedIndex = 1
end) end)

View File

@ -190,6 +190,9 @@ function M:SetCanWatch()
end end
self._group.isWatch = value self._group.isWatch = value
self:RefalshMoreBtn() self:RefalshMoreBtn()
--
local fgCtr = ControllerManager.GetController(NewGroupController)
self:UpdateFamilyRoom(fgCtr, self._group.id)
end) end)
end end
@ -372,7 +375,7 @@ function M:UpdateFamilyRoom(fgCtr, id)
obj:GetController('num').selectedIndex = roomList[newIndex].maxPlayers - 2 obj:GetController('num').selectedIndex = roomList[newIndex].maxPlayers - 2
-- if self._group.isWatch == 1 then -- if self._group.isWatch == 1 then
-- 允许观战 -- 允许观战
obj:GetController('type').selectedIndex = 1 obj:GetController('type').selectedIndex = self._group.isWatch or 1
-- end -- end
local plist = roomList[newIndex].plist local plist = roomList[newIndex].plist
local insertName = "" local insertName = ""