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