|
|
|
|
@ -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); |
|
|
|
|
|