Commit 7a1d8de7 authored by shiyu's avatar shiyu

消息发送后保存记录的操作删除由回调执行

parent f8546f1b
...@@ -64,7 +64,6 @@ public class IMCallbackController { ...@@ -64,7 +64,6 @@ public class IMCallbackController {
} else { } else {
imRecord.setState(IMEnum.MsgStateEnum.READED.getCode()); imRecord.setState(IMEnum.MsgStateEnum.READED.getCode());
} }
//消息体 //消息体
String msgBody = JsonUtils.getValueByPath(jsonStr, "MsgBody"); String msgBody = JsonUtils.getValueByPath(jsonStr, "MsgBody");
JSONArray jsonArray = JSON.parseArray(msgBody); JSONArray jsonArray = JSON.parseArray(msgBody);
...@@ -87,6 +86,7 @@ public class IMCallbackController { ...@@ -87,6 +86,7 @@ public class IMCallbackController {
imRecord.setCreateTime(now); imRecord.setCreateTime(now);
imRecord.setUpdateTime(now); imRecord.setUpdateTime(now);
imRecordService.create(imRecord); imRecordService.create(imRecord);
logger.info(">>>>>>>>>>> MsgKey : {}, 保存聊天消息成功 <<<<<<<<<<<", msgKey);
} catch (Exception e) { } catch (Exception e) {
logger.error("消息发送之后的回调error : {}", e); logger.error("消息发送之后的回调error : {}", e);
} }
......
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