Merge branch 'master' of https://github.com/metersphere/metersphere into master
This commit is contained in:
commit
5e0a79f6a3
|
@ -15,7 +15,8 @@ import io.metersphere.track.request.testreview.SaveCommentRequest;
|
|||
import io.metersphere.track.request.testreview.SaveTestCaseReviewRequest;
|
||||
import org.apache.commons.collections4.MapUtils;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.flywaydb.core.internal.util.StringUtils;
|
||||
import org.apache.commons.lang3.RegExUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.mail.MailException;
|
||||
import org.springframework.mail.javamail.JavaMailSenderImpl;
|
||||
import org.springframework.mail.javamail.MimeMessageHelper;
|
||||
|
@ -96,11 +97,11 @@ public class MailService {
|
|||
|
||||
private String getContent(String template, Map<String, String> context) {
|
||||
if (MapUtils.isNotEmpty(context)) {
|
||||
context.forEach((k, v) -> {
|
||||
if (v != null && !v.isEmpty()) {
|
||||
StringUtils.replaceAll(template, "${" + k + "}", v);
|
||||
for (String k : context.keySet()) {
|
||||
if (StringUtils.isNotBlank(context.get(k))) {
|
||||
template = RegExUtils.replaceAll(template, "\\$\\{" + k + "}", context.get(k));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
return template;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
:placeholder="$t('test_track.plan.input_plan_project')"
|
||||
multiple
|
||||
style="width: 100%"
|
||||
collapse-tags
|
||||
filterable>
|
||||
<el-option
|
||||
v-for="item in projects"
|
||||
|
|
Loading…
Reference in New Issue