Authored by 张帅

update

... ... @@ -89,8 +89,8 @@ public class GrassUserVirtualImpl implements IGrassVirtualService{
//没有标记位,直接处理
if(sendTime == null){
platformRedis.setValue(MESSAGE_SENDING_FLAG, DateUtil.getCurrentTimeSeconds(), 600);
for (GrassInBoxAddReq message : messageList) {
List<GrassInBoxAddReq> l = new ArrayList<>();
for (GrassInBoxAddReq message : messageList) {
l.add(message);
if (l.size() % 1000 == 0) {
sendMessage(l);
... ... @@ -101,10 +101,10 @@ public class GrassUserVirtualImpl implements IGrassVirtualService{
e.printStackTrace();
}
}
}
if (CollectionUtils.isNotEmpty(l)) {
sendMessage(l);
}
}
platformRedis.delete(MESSAGE_SENDING_FLAG);
platformRedis.delete(MESSAGE_KEY);
logger.info("sendMessageTask end , message list clear success");
... ...