You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.
local record
if self.recordset[uid] then
if not field then
record = self.recordset[uid][id] or {}
elseif type(field) == "string" then
if not self.recordset[uid][id] then return end
record = self.recordset[uid][id][field]
elseif type(field) == "table" then
record = {}
local t = self.recordset[uid][id]
if not t then return record end
for i=1, #field do
record[field[i]] = t[field[i]]
end
end
--此处不应该直接return
--调用方如果第一次有传的id,那么slef.recordset[uid]中仅会有一个记录,会导致后续的其他记录均无法查询到,应判断如果不存在,尝试去redis\mysql加载一次
return record
end
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: