|
@@ -1263,7 +1263,7 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
privateImportMessage.setToAccount(targetIdUserId);
|
|
privateImportMessage.setToAccount(targetIdUserId);
|
|
//设置随机数
|
|
//设置随机数
|
|
if (i.getMsgRandom() == null) {
|
|
if (i.getMsgRandom() == null) {
|
|
- int nextInt = new Random().nextInt();
|
|
|
|
|
|
+ int nextInt = Math.abs(new Random().nextInt());
|
|
privateImportMessage.setMsgRandom(nextInt);
|
|
privateImportMessage.setMsgRandom(nextInt);
|
|
i.setMsgRandom(nextInt);
|
|
i.setMsgRandom(nextInt);
|
|
} else {
|
|
} else {
|
|
@@ -1271,7 +1271,7 @@ public class ImGroupServiceImpl extends BaseServiceImpl<String, ImGroup> impleme
|
|
}
|
|
}
|
|
|
|
|
|
if (i.getMsgSeq() == null) {
|
|
if (i.getMsgSeq() == null) {
|
|
- int nextInt = new Random().nextInt();
|
|
|
|
|
|
+ int nextInt = Math.abs(new Random().nextInt());
|
|
i.setMsgSeq(nextInt);
|
|
i.setMsgSeq(nextInt);
|
|
privateImportMessage.setMsgSeq(nextInt);
|
|
privateImportMessage.setMsgSeq(nextInt);
|
|
} else {
|
|
} else {
|