25.4.1.2
parent
645653c062
commit
fd7206c144
|
|
@ -97,7 +97,7 @@ function M:init(url)
|
||||||
for i = 1, #groups do
|
for i = 1, #groups do
|
||||||
if groups[i].name == input_name.text then
|
if groups[i].name == input_name.text then
|
||||||
fgCtr:FG_RemoveGroup(groups[i].id, function(res)
|
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
|
if res.ReturnCode == 0 then
|
||||||
self.familyType.selectedIndex = 1
|
self.familyType.selectedIndex = 1
|
||||||
self:ConnetFamily(1, groups, true)
|
self:ConnetFamily(1, groups, true)
|
||||||
|
|
@ -107,7 +107,7 @@ function M:init(url)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
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
|
if res.ReturnCode == 0 then
|
||||||
self.familyType.selectedIndex = 1
|
self.familyType.selectedIndex = 1
|
||||||
self:ConnetFamily(1, groups, true)
|
self:ConnetFamily(1, groups, true)
|
||||||
|
|
@ -115,26 +115,6 @@ function M:init(url)
|
||||||
end)
|
end)
|
||||||
end
|
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)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue