Commit aeb18ed4 by 罗长华

添加对图片类型消息的处理

parent 859a8711
......@@ -62,4 +62,7 @@ public class ImMessageOnlineSend extends BaseEntity {
@ApiModelProperty("会话id")
private Long conversationId;
@ApiModelProperty("文件")
private Object file;
}
......@@ -868,6 +868,7 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
imMessageOnlineSend.setSystemFlag(message.getSystemFlag());
imMessageOnlineSend.setType(message.getMsgType());
imMessageOnlineSend.setAt(message.getAt());
imMessageOnlineSend.setFile(content);
return imMessageOnlineSend;
}
......
......@@ -146,7 +146,7 @@ public class ChannelSender {
// 调用本地下发
log.info("在线用户入参 {}, 具体ip结果 {}", toClientId, JSON.toJSONString(channelInfoEntry));
for(ClientChannelInfo clientChannelInfo : channelInfoEntry.getValue()) {
log.info("客户端 {}, 推送消息内容 {}", toClientId, JSON.toJSONString(msgJson));
log.info("客户端 {}, 推送消息内容 {}", toClientId, msgJson);
this.sendMsgLocal(toClientId, clientChannelInfo.getPlatform(), msgJson);
}
continue;
......
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