Merge branch 'master' of http://121.41.95.54:3000/aga/jx_client
commit
88b072aef4
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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::::::::::::::牌友圈协议::::::::::::::::::::
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 = ""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue