refactor: 快照不再回退到类型默认脚本
This commit is contained in:
@@ -75,13 +75,7 @@ public class SiteSnapshotServiceImpl implements SiteSnapshotService {
|
|||||||
log.warn("读取脚本失败 siteId={}: {}", siteId, e.getMessage());
|
log.warn("读取脚本失败 siteId={}: {}", siteId, e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!snapshot.containsKey("script") && siteType != null) {
|
// 无自定义脚本则跳过,不回退到默认模板
|
||||||
String defScript = GroovyScriptEngine.loadDefaultByType(siteType);
|
|
||||||
if (defScript != null) {
|
|
||||||
snapshot.put("script", defScript);
|
|
||||||
snapshot.put("scriptSource", "default");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2. 页面配置
|
// 2. 页面配置
|
||||||
Map<String, Object> pages = sitePagesService.getPages(siteId);
|
Map<String, Object> pages = sitePagesService.getPages(siteId);
|
||||||
|
|||||||
Reference in New Issue
Block a user