Commit ee817131 by xugaojun

Merge remote-tracking branch 'origin/developer' into developer

parents cd91c569 68a0b020
...@@ -7,7 +7,7 @@ public enum AlertTypeEnum { ...@@ -7,7 +7,7 @@ public enum AlertTypeEnum {
QYWX_TAG_SYNC(1, "企微标签同步", null), QYWX_TAG_SYNC(1, "企微标签同步", null),
QUNFA_MESSAGE(2, "企微群发", null), QUNFA_MESSAGE(2, "企微群发", null),
FRIEND_ADD(3, "企微好友添加", null), FRIEND_ADD(3, "企微好友添加", null),
CLOUD_STORE_CHANGE(4, "观云台转态变回收站", null),; CLOUD_STORE_CHANGE(4, "观云台门店进回收站", null),;
private Integer type; private Integer type;
private String name; private String name;
private String dingUrl; private String dingUrl;
......
...@@ -136,7 +136,8 @@ public class CheckQywxSettingApiServiceImpl implements CheckQywxSettingApiServic ...@@ -136,7 +136,8 @@ public class CheckQywxSettingApiServiceImpl implements CheckQywxSettingApiServic
} }
//告警是否拦截重复告警 防止批量触发 //告警是否拦截重复告警 防止批量触发
if (StringUtils.isNotBlank(messageDTO.getKey())) { if (StringUtils.isNotBlank(messageDTO.getKey())) {
RBucket<Object> bucket = RedisUtil.getRedisClient().getBucket(messageDTO.getKey()); String key = messageDTO.getKey() + messageDTO.getAlertType();
RBucket<Object> bucket = RedisUtil.getRedisClient().getBucket(key);
boolean b = bucket.trySet(1, 60L, TimeUnit.SECONDS); boolean b = bucket.trySet(1, 60L, TimeUnit.SECONDS);
if (!b) { if (!b) {
return; return;
......
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