Commit aaf882f1 by 段启岩

消息类型增加

parent d538aad9
......@@ -258,8 +258,8 @@ public class MessageListener implements DataItemChangeListener {
// 获取问题
Question question = questionService.getById(questionReply.getQuestionId());
// 给问题提出者发消息
if (!questionReply.getUserId().equals(operatorId) && question.getUserId().equals(operatorId)) {
// 给回答者发消息
if (!questionReply.getUserId().equals(operatorId)) {
Message messageToAuthor = new Message();
messageToAuthor.setMsgType(MessageType.QUESTION_REPLY_ACCEPTED.getType());
messageToAuthor.setUserId(questionReply.getUserId());
......
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