Commit 51187059 by sxy

fix: 消息状态

parent 4a058332
......@@ -153,10 +153,10 @@ class MsgService extends ServiceBase {
offset: (pageNo - 1) * pageSize,
order: [["created_at", "DESC"]]
};
if (["read", "unread"].includes(msgType)) {
if (["readed", "unread"].includes(msgType)) {
msgData = await this.msguserDao.findAll({
user_id: userid,
is_read: msgType === "read"
is_read: msgType === "readed"
}, [
{
model: this.db.models.msg,
......@@ -166,7 +166,7 @@ class MsgService extends ServiceBase {
}
], other);
}
if (msgType === "system") {
if (msgType === "sys") {
msgData = await this.dao.findAll({
msgType: system.Msg.SYS,
is_undo: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment