Commit b7c10a9c by 徐高华

LOG

parent 41b57c04
...@@ -260,7 +260,15 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -260,7 +260,15 @@ public class GroupChatServiceImpl implements GroupChatService {
// 处理群通知 // 处理群通知
@Override @Override
public void handChatNotice(String params) { public void handChatNotice(String params) {
logger.info("企微群定时,企微通知"); logger.info("企微群定时,处理群通知");
String key = "handChatNotice";
try {
Object o = RedisUtil.getCache(key);
if (null != o) {
logger.info("有缓存,进行中");
return;
}
RedisUtil.setCache(key, "1");
List<Integer> typeList = Arrays.asList(1, 2, 3); List<Integer> typeList = Arrays.asList(1, 2, 3);
Date endTime = new Date(); Date endTime = new Date();
Date startTime = DateUtil.addNumForMinute(endTime, -30); Date startTime = DateUtil.addNumForMinute(endTime, -30);
...@@ -289,6 +297,11 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -289,6 +297,11 @@ public class GroupChatServiceImpl implements GroupChatService {
e.printStackTrace(); e.printStackTrace();
} }
} }
} catch (Exception e) {
e.printStackTrace();
} finally {
RedisUtil.delCache(key);
}
} }
@Override @Override
......
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