REQ-2411: 去重
This commit is contained in:
parent
fab98e3f8f
commit
3c8ba8e42e
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user