This commit is contained in:
aozhiwei 2024-04-07 15:50:44 +08:00
parent f07ac19f0a
commit 2572736f6b

View File

@ -105,13 +105,15 @@ func (this *cacheMgr) internalGetUsers(accountIds []string, cb func(int32, strin
subTask.SetFail()
return
}
accountId := ds.GetByName("account_id")
u := this.getUser(accountId)
if u == nil {
u = newUserProfile()
if ds.Next() {
accountId := ds.GetByName("account_id")
u := this.getUser(accountId)
if u == nil {
u = newUserProfile()
}
u.loadFromDb(ds)
this.userHash[u.accountId] = u
}
u.loadFromDb(ds)
this.userHash[u.accountId] = u
if i + 1 < len(keys) {
i++
subTask.Continue()