提交 b61d24d7 编写于 作者: J johnniang

Fix migration bug

上级 5adeed87
......@@ -92,7 +92,6 @@ public class Attachment extends BaseEntity {
@Override
public void prePersist() {
super.prePersist();
id = null;
if (fileKey == null) {
fileKey = "";
......
......@@ -440,7 +440,7 @@ public class RecoveryServiceImpl implements RecoveryService {
}
// Set location
String attachLocation = attachmentMap.get("attachLocation").toString();
String attachLocation = attachmentMap.getOrDefault("attachLocation", "").toString();
if (StringUtils.equalsIgnoreCase(attachLocation, "qiniu")) {
attachment.setType(AttachmentType.QNYUN);
} else if (StringUtils.equalsIgnoreCase(attachLocation, "upyun")) {
......
<div class="page-top animated fadeInDown">
<div class="nav">
<@menuTag method="list">
<#list menus?sort_by('sort') as menu>
<#list menus?sort_by('priority') as menu>
<li>
<a href="${menu.url}" target="${menu.target!}">${menu.name} </a>
</li>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册