This commit is contained in:
2021-04-02 07:25:30 +08:00
parent bf55cc7e54
commit 5a43e0d172
20 changed files with 1627 additions and 1107 deletions

View File

@@ -97,6 +97,9 @@ DBMessage.onGetMessage = function(type, list, meta)
---@param v _DBMessage
for i, v in ipairs(list) do
v.NOTICETYPE = type
if v.NOTICETYPE == DBMessage.MsgType.Timeout then
v.READFLAG = v.remindingFlag == "Y" and 1 or 0
end
table.insert(db.list[type], v) -- 倒序
end
-- //TODO:保存到本地
@@ -161,7 +164,7 @@ function DBMessage.getUnreadNum(type)
local list = DBMessage.getMessages(DBMessage.MsgType.Timeout)
---@param v
for i, v in ipairs(list) do
if v.ReadFlag == DBMessage.ReadFlag.unread then
if v.READFLAG == DBMessage.ReadFlag.unread then
count = count + 1
end
end