Commit 9fe2050a authored by shiyu's avatar shiyu

cloudCustomData字段为空问题处理

parent 8e3f8579
......@@ -93,7 +93,7 @@ public class SysIMRecordServiceImpl implements SysIMRecordService {
imRecordVo.setToAccountIcon(cacheUtil.getAiAssistantByCode(imRecord.getToAccount()).getAvatar());
}
String cloudCustomData = imRecord.getCloudCustomData();
if (cloudCustomData.contains("realPersonId")){
if (StringUtils.hasLength(cloudCustomData) && cloudCustomData.contains("realPersonId")){
imRecordVo.setIsRealPerson(true);
}
imRecordVos.add(imRecordVo);
......
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