diff --git a/src/main/java/com/xkrs/helper/FirePointSubscribeManager.java b/src/main/java/com/xkrs/helper/FirePointSubscribeManager.java index 67f7242..f3144bb 100644 --- a/src/main/java/com/xkrs/helper/FirePointSubscribeManager.java +++ b/src/main/java/com/xkrs/helper/FirePointSubscribeManager.java @@ -123,6 +123,15 @@ public class FirePointSubscribeManager { private List obtainCountyCodeList(List sysUserEntityList) { List countyCodeList = new ArrayList<>(); for (SysUserEntity sysUserEntity : sysUserEntityList) { + if (sysUserEntity.getActiveFlag() != 0) {//被禁用的用户不计入订阅 + continue; + } + if (sysUserEntity.getReceiveSms() != 1) {//关掉开关的用户不计入订阅 + continue; + } + if ("管理员".equals(sysUserEntity.getAccountType())) {//管理员用户不计入订阅 + continue; + } boolean inVipTimeRange = VipTimeRangeUtils.checkIfInVipTimeRange(sysUserEntity.getVipTimeRangeJson()); if (inVipTimeRange) { countyCodeList.add(sysUserEntity.getCountyCode());