diff --git a/app/service/ContentService.php b/app/service/ContentService.php index e12b482..a758c4d 100644 --- a/app/service/ContentService.php +++ b/app/service/ContentService.php @@ -471,7 +471,10 @@ class ContentService { if($param['isTop'] != 2){ $where['is_top'] = 1; } - if($param['isTop'] == 2){ + // if($param['isTop'] == 2){ + // $where['is_top'] = 2; + // } + if($param['isTop'] == 222){ $where['is_top'] = 2; } diff --git a/public/themes/website/1/zh/demo/news.html b/public/themes/website/1/zh/demo/news.html index f30d18f..f142c38 100644 --- a/public/themes/website/1/zh/demo/news.html +++ b/public/themes/website/1/zh/demo/news.html @@ -169,7 +169,7 @@
- {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time,is_top" subField="" name="hc_content" limit="6" item="content_sub22" sort="sort asc" isTop="2"} + {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time,is_top" subField="" name="hc_content" limit="6" item="content_sub22" sort="sort asc" isTop="222"} {/hcTaglib:contentPage2} {volist name="hc_content" id="vo_content"}