mirror of https://github.com/halo-dev/halo
Fix migration bug
parent
5adeed87cb
commit
b61d24d7bd
|
@ -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")) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<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>
|
||||
|
|
Loading…
Reference in New Issue