From 04c62c9725ab066448eec39c36176c4921b93317 Mon Sep 17 00:00:00 2001 From: xiaodong Date: Fri, 4 Sep 2026 15:06:17 +0800 Subject: [PATCH] =?UTF-8?q?istop=E6=9F=A5=E8=AF=A2=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/ContentService.php | 5 ++++- public/themes/website/1/zh/demo/news.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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 a7d4a47..edb94a2 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"}