master
罗家炜 2025-04-01 16:47:54 +08:00
parent 645653c062
commit fd7206c144
2 changed files with 2 additions and 22 deletions

View File

@ -97,7 +97,7 @@ function M:init(url)
for i = 1, #groups do
if groups[i].name == input_name.text then
fgCtr:FG_RemoveGroup(groups[i].id, function(res)
fgCtr:FG_CreateGroup(input_name.text, 1, 1, function(res)
fgCtr:FG_CreateGroup(input_name.text, 1, 2, function(res)
if res.ReturnCode == 0 then
self.familyType.selectedIndex = 1
self:ConnetFamily(1, groups, true)
@ -107,7 +107,7 @@ function M:init(url)
end
end
else
fgCtr:FG_CreateGroup(input_name.text, 1, 1, function(res)
fgCtr:FG_CreateGroup(input_name.text, 1, 2, function(res)
if res.ReturnCode == 0 then
self.familyType.selectedIndex = 1
self:ConnetFamily(1, groups, true)
@ -115,26 +115,6 @@ function M:init(url)
end)
end
end)
-- fgCtr:FG_CreateGroup(input_name.text, 1, 1, function(res)
-- if res.ReturnCode == 0 then
-- local l_groups = DataManager.groups
-- local tem = res.Data.info
-- local group = GroupData.new()
-- group.id = tem.id
-- group.name = tem.name
-- group.owner = DataManager.SelfUser.account_id
-- group.o_nick = DataManager.SelfUser.nick_name
-- group.o_portrait = DataManager.SelfUser.head_url
-- group.lev = 1
-- group.pay_type = pay_type
-- group.type = type
-- group.total_member_num = 1
-- l_groups:add(group)
-- self.familyType.selectedIndex = 0
-- self:ConnetFamily(1, l_groups, true)
-- end
-- end)
end)
end