Commit f9c5892f by Shadow

fixed bugs

parent 0186beda
......@@ -782,8 +782,8 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
// 转换json格式
for (ConversationVo myconversationlistvo : myImConversationListAndMsgCount) {
// HashMap attributess = JsonUtils.json2Map(myconversationlistvo.getAttribute());
myconversationlistvo.setAttributes(myconversationlistvo.getAttribute());
HashMap attributess = JsonUtils.json2Map(myconversationlistvo.getAttribute());
myconversationlistvo.setAttributes(attributess);
// 查询会话的最后一条消息
OfflineMsgDto lastMsg = imMessageService.getLastMsgByConversationId(myconversationlistvo.getId(), currentClient.getId());
......@@ -823,8 +823,8 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
return null;
}
ConversationVo conversationVo = conversationList.get(0);
// HashMap attributess = JsonUtils.json2Map(conversationVo.getAttribute());
conversationVo.setAttributes(conversationVo.getAttribute());
HashMap attributess = JsonUtils.json2Map(conversationVo.getAttribute());
conversationVo.setAttributes(attributess);
// 查询会话的最后一条消息
OfflineMsgDto lastMsg = imMessageService.getLastMsgByConversationId(conversationVo.getId(), client.getId());
conversationVo.setLastMsg(lastMsg);
......
......@@ -7,6 +7,7 @@ import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
......@@ -43,7 +44,7 @@ public class ConversationVo implements Serializable {
private String attribute;
@ApiModelProperty("可选 自定义属性,供开发者扩展使用。")
private String attributes;
private HashMap attributes;
@ApiModelProperty("可选 对话类型标志,是否是系统对话,后面会说明。")
private Boolean systemFlag;
......
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