REQ-3502: 告警时打印手机号

This commit is contained in:
yanglin 2025-01-20 09:42:05 +08:00
parent 9435365317
commit 0a5cbf0a3b

View File

@ -60,6 +60,7 @@ public class MnsLimiter {
error = String.format("验证码短信: 每 %s 分钟发送给同一个手机号的重复内容不能超过 %s 条。 请勿重试发送!!",
props.getVerifyCodeLimitWindowMinutes(), limitCount);
}
error += " [" + request.getPhoneNo() + "]";
if (alreadySendCount + 1 > limitCount) {
log.warn("mns rate limited, {}, request={}", error, request);
throw new ServiceException(ReturnCodeEnum.FAIL.getCode(), error);