为 MessageBean 添加 chat_id 字段?
* 不知道有没有用, 有可能会被移除 * 有可能是史山
This commit is contained in:
@@ -62,17 +62,22 @@ export default class ChatApi extends BaseApi {
|
||||
const userInst = User.findById(id)
|
||||
userInst?.updateRecentChat(chat.bean.id, args.text as string)
|
||||
})
|
||||
const m = {
|
||||
...msg,
|
||||
id,
|
||||
chat_id: chat.bean.id,
|
||||
}
|
||||
this.boardcastToUsers(users, 'Client.onMessage', {
|
||||
chat: chat.bean.id,
|
||||
msg: {
|
||||
...msg,
|
||||
id
|
||||
}
|
||||
msg: m
|
||||
})
|
||||
|
||||
return {
|
||||
code: 200,
|
||||
msg: "成功",
|
||||
data: {
|
||||
msg: m,
|
||||
}
|
||||
}
|
||||
})
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user