This commit is contained in:
2020-07-15 20:53:37 +08:00
parent f02f8e2308
commit 2092e4ef94
46 changed files with 200 additions and 154 deletions

View File

@@ -9,13 +9,12 @@ local db = {}
local icons = {}
local poplist = {}
function DBUser.onGetUsers(list)
poplist.options = ArrayList()
poplist.values = ArrayList()
for i, v in ipairs(list) do
db[v.loginNo] = v
poplist.options:Add(v.loginName)
poplist.options:Add(joinStr(v.loginNo, "_", v.loginName))
poplist.values:Add(v.loginNo)
end
end
@@ -26,7 +25,7 @@ end
---@return _DBUser
function DBUser.getUserById(loginNo)
local user = db[loginNo]
local user = db[loginNo]
if user == nil then
printe("get user is nil=", loginNo)
end