bihuisong 1 year ago
parent
commit
60aa324b54
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/main/java/com/sooka/module/web/cms/IndexController.java

+ 0 - 2
src/main/java/com/sooka/module/web/cms/IndexController.java

@@ -293,7 +293,6 @@ public class IndexController {
         if(CmsUtil.isNullOrEmpty(category)) {
             throw new CmsException(CmsConst.PAGE_NOT_FOUND);
         }
-        PageInfo page = contentService.page(1,siteId,category.getCategoryId());
         Map content = contentService.findContentByContentIdAndTableName(contentId,contentModel.getTableName());
         if(CmsUtil.isNullOrEmpty(content)) {
             throw new CmsException(CmsConst.CONTENT_NOT_FOUND);
@@ -305,7 +304,6 @@ public class IndexController {
         model.addAttribute("site",site);
         model.addAttribute("category",category);
         model.addAttribute("content",content);
-        model.addAttribute("page",page);
         if(StrUtil.isBlank(site.getTemplate())) {
             return this.view(category.getContentTpl());
         }