|
@@ -1448,7 +1448,7 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
|
privateImportMessage.setTencentMessageBody(list);
|
|
|
privateImportMessage.setCloudCustomData(jsonObject.getString("extra"));
|
|
|
|
|
|
- log.info("导入私聊消息:{}", JSON.toJSONString(privateImportMessage));
|
|
|
+// log.info("导入私聊消息:{}", JSON.toJSONString(privateImportMessage));
|
|
|
try {
|
|
|
imPluginContext.getPluginService().importPrivateMessage(privateImportMessage);
|
|
|
//为已导入数据更改标识
|
|
@@ -1457,7 +1457,7 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
|
log.info("导入私聊消息成功");
|
|
|
} catch (Exception e) {
|
|
|
updateStatus(i,2);
|
|
|
- log.error("导入私聊IM消息失败 msg:{},entity:{}", list, i, e);
|
|
|
+ log.error("导入私聊IM消息失败 msg:{},entity:{}", JSON.toJSONString(privateImportMessage), i, e);
|
|
|
}
|
|
|
} else if (type == 3) {
|
|
|
//群组会话
|
|
@@ -1483,7 +1483,7 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
|
|
|
|
data1.setFromAccount(imUserId);
|
|
|
//设置随机数
|
|
|
- data1.setRandom(new Random().nextInt());
|
|
|
+ data1.setRandom(Math.abs(new Random().nextInt()));
|
|
|
//设置发送时间
|
|
|
|
|
|
String time = i.getDateTime();
|
|
@@ -1526,7 +1526,7 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
|
list.add(data1);
|
|
|
//导入消息列表
|
|
|
groupImportMessage.setMsgList(list);
|
|
|
- log.info("导入群聊消息:{}", JSON.toJSONString(groupImportMessage));
|
|
|
+// log.info("导入群聊消息:{}", JSON.toJSONString(groupImportMessage));
|
|
|
try {
|
|
|
imPluginContext.getPluginService().importGroupMessage(groupImportMessage);
|
|
|
//为已导入数据更改标识
|
|
@@ -1534,7 +1534,7 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
|
log.info("导入消息成功");
|
|
|
} catch (Exception e) {
|
|
|
updateStatus(i,2);
|
|
|
- log.error("导入群组IM消息失败 msg:{},entity:{}", list, i, e);
|
|
|
+ log.error("导入群组IM消息失败 msg:{},entity:{}", JSON.toJSONString(groupImportMessage), i, e);
|
|
|
}
|
|
|
}
|
|
|
}catch (Exception e) {
|