浏览代码

首页新闻修改

Signed-off-by: anderx <312518615@qq.com>
anderx 5 年之前
父节点
当前提交
f4ace3eae7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/kede/common/controller/WebpageController.java

+ 2 - 2
src/main/java/com/kede/common/controller/WebpageController.java

@@ -168,7 +168,7 @@ public class WebpageController extends BaseController {
 		List<OutNews> gs2=new ArrayList<>();
 		for (int i = 0; i < list.size(); i++) {
 			list.get(i).setReleaseTimeConvert(DateUtils.formatDate(list.get(i).getReleaseTime(), AFTConstants.MMDD));
-//			list.get(i).setContent(displayRestriction(list.get(i).getContent()));
+			list.get(i).setContent(displayRestriction(list.get(i).getContent()));
 			if (i==0) {
 				gs1=list.get(i);
 			}else {
@@ -181,7 +181,7 @@ public class WebpageController extends BaseController {
 		List<OutNews>hy=(List<OutNews>) newsService.listnewsDetails(in, 3, 1).getList();
 		for (OutNews o : hy) {
 			o.setReleaseTimeConvert(DateUtils.formatDate(o.getReleaseTime(), AFTConstants.MMDD));
-//			o.setContent(displayRestriction(o.getContent()));
+			o.setContent(displayRestriction(o.getContent()));
 		}
 		modelview.addObject("hy", hy);
 		//获取战略合作16个