update 优化 发送验证码接口 异常提醒内容修改

This commit is contained in:
疯狂的狮子Li 2026-09-07 15:54:23 +08:00
parent de29fbbc8d
commit dddbd53761

View File

@ -102,7 +102,7 @@ public class CaptchaController {
try {
MailUtils.sendText(email, "登录验证码", "您本次验证码为:" + code + ",有效性为" + Constants.CAPTCHA_EXPIRATION + "分钟,请尽快填写。");
} catch (Exception e) {
log.error("验证码短信发送异常 => {}", e.getMessage());
log.error("验证码邮件发送异常 => {}", e.getMessage());
throw new ServiceException(e.getMessage());
}
}