Commit af321b09 by Future

日志添加

parent 793c3c31
......@@ -229,6 +229,7 @@ public class NormalChatAction {
*/
private Boolean sendMsgForOnline(Long receiverClientId, ImMessageOnlineSend imMessageOnlineSend) {
// 封装要推给接收方的消息
long time1 = System.currentTimeMillis();
WsResponse<ImMessageOnlineSend> responseModel = new WsResponse<>();
responseModel.setCmd(WsResponseCmdEnum.ONLINE_MSG.getCmdCode());
ApiResult<Boolean> result = ApiResult.result(ApiCode.SUCCESS);
......@@ -236,6 +237,8 @@ public class NormalChatAction {
responseModel.setMsg(result.getMessage());
responseModel.setData(imMessageOnlineSend);
responseModel.setReqId(null);
log.info("构造在线消息耗时 {}", System.currentTimeMillis() - time1);
return channelSender.sendMsg(responseModel, receiverClientId);
}
......
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