新用户不会弹窗
parent
d1a47a691f
commit
f465fdafe2
|
|
@ -167,9 +167,7 @@ function M:Login(callback)
|
|||
local result = pcall(function(...)
|
||||
_data.data = RSAHelper.Encrypt(json.encode({
|
||||
acc = user.acc,
|
||||
-- acc = "hjksa456asfas2sadg454dsdas354djbrdsdqadasd7fadij97845bd56r4",
|
||||
nick = user.nick_name,
|
||||
-- nick = "test1",
|
||||
sex = user.sex,
|
||||
portrait = user.head_url,
|
||||
deviceCode = UnityEngine.SystemInfo.deviceUniqueIdentifier
|
||||
|
|
|
|||
|
|
@ -62,8 +62,16 @@ function M:initInfo()
|
|||
ViewUtil.ErrorTip(res.ReturnCode)
|
||||
return
|
||||
end
|
||||
self._resData = res.Data.accounts
|
||||
self._resData = {}
|
||||
for i = 1, #res.Data.accounts do
|
||||
if res.Data.accounts[i].id ~= DataManager.SelfUser.account_id then
|
||||
table.insert(self._resData, res.Data.accounts[i])
|
||||
end
|
||||
end
|
||||
if #self._resData > 0 then
|
||||
self._list_acc.numItems = #self._resData
|
||||
self:Show()
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -429,7 +429,6 @@ function M:Show()
|
|||
local selectAcc = SelectAcc.new({}, function()
|
||||
self._close_destroy = true
|
||||
end)
|
||||
selectAcc:Show()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue