REQ-2411: 去重

This commit is contained in:
yanglin 2024-05-07 10:19:53 +08:00
parent fab98e3f8f
commit 3c8ba8e42e

View File

@ -48,12 +48,11 @@ public class MnsLimiter {
} }
long alreadySendCount = Long.parseLong(countStr); long alreadySendCount = Long.parseLong(countStr);
MnsType msnType = request.getInternalObj(MnsType.class); MnsType mnsType = getMnsType(request);
if (msnType == null) msnType = MnsType.BIZ;
long limitCount; long limitCount;
String error; String error;
if (msnType == MnsType.BIZ) { if (mnsType == MnsType.BIZ) {
limitCount = props.getBizLimitPerDay(); limitCount = props.getBizLimitPerDay();
error = String.format("业务短信: 每天发送给同一个手机号的重复内容不能超过 %s 条。 请勿重试发送!!", limitCount); error = String.format("业务短信: 每天发送给同一个手机号的重复内容不能超过 %s 条。 请勿重试发送!!", limitCount);
} else { } else {