Authored by Amos_sdy

记录重复内容的用户数量和内容

... ... @@ -110,6 +110,11 @@ public class SMSSendHelper {
int orginMobileSize = mobileList.size();
mobileList = filterUserService.ignoreRepeatUsers(content, mobileList);
log.info("sendSMS ignoreRepeatUsers, orgin mobile size is [{}], new mobile size is [{}]", orginMobileSize, mobileList.size());
// 如果过滤重复内容后的mobileList比原来少了,则需要记录告警日志
int filterRepeatSize = mobileList.size();
if (orginMobileSize > filterRepeatSize) {
log.warn("exist repeatContentMobile, content is[{}], repeat count is[{}]", content, orginMobileSize - filterRepeatSize);
}
// 2、过滤总次数
orginMobileSize = mobileList.size();
... ...