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);
MnsType msnType = request.getInternalObj(MnsType.class);
if (msnType == null) msnType = MnsType.BIZ;
MnsType mnsType = getMnsType(request);
long limitCount;
String error;
if (msnType == MnsType.BIZ) {
if (mnsType == MnsType.BIZ) {
limitCount = props.getBizLimitPerDay();
error = String.format("业务短信: 每天发送给同一个手机号的重复内容不能超过 %s 条。 请勿重试发送!!", limitCount);
} else {