5.2.6 修复单篇生成问题

master
msgroup 4 years ago committed by mingsoft
parent 500dc51bd1
commit ecd245b793
  1. 9
      src/main/java/net/mingsoft/cms/action/GeneraterAction.java

@ -260,17 +260,8 @@ public class GeneraterAction extends BaseAction {
continue;
}
} else if (category.getCategoryType().equals(CategoryTypeEnum.COVER.toString())) {
// 判断模板文件是否存在
if (!FileUtil.exist(ParserUtil.buildTemplatePath(category.getCategoryListUrl())) || StringUtils.isEmpty(category.getCategoryListUrl())) {
LOG.error("{} 模板不存在:{}", category.getCategoryTitle(),category.getCategoryListUrl());
continue;
}
CategoryBean columnArticleIdBean = new CategoryBean();
CopyOptions copyOptions = CopyOptions.create();
copyOptions.setIgnoreError(true);
BeanUtil.copyProperties(category, columnArticleIdBean, copyOptions);
articleIdList.add(columnArticleIdBean);
}
// 有符合条件的就更新
if (articleIdList.size() > 0) {
CmsParserUtil.generateBasic(articleIdList, htmlDir);

Loading…
Cancel
Save