|
|
@@ -760,10 +760,12 @@ public class ResumesServiceImpl extends ServiceImpl<ResumesDao, Resumes> impleme
|
|
|
log.error("邮件发送失败:收件人邮箱为空,resumesId={}", resumesId);
|
|
|
return;
|
|
|
}
|
|
|
+
|
|
|
if (!to.matches("^[\\w.-]+@[\\w.-]+\\.[A-Za-z]{2,}$")) {
|
|
|
log.error("邮件发送失败:收件人邮箱格式错误,resumesId={}, to={}", resumesId, to);
|
|
|
return;
|
|
|
}
|
|
|
+ resumesName=resumesName+".pdf";
|
|
|
if (StringUtils.isBlank(resumesName)) {
|
|
|
log.error("邮件发送失败:简历名称为空,resumesId={}, to={}", resumesId, to);
|
|
|
return;
|