From 276c722ca44235d7590440d7803f415df464b379 Mon Sep 17 00:00:00 2001 From: "zhangf@suq.cn" Date: Mon, 7 Sep 2026 14:29:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(news):=20=E4=BF=AE=E5=A4=8D=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E9=A1=B5=E9=9D=A2=E6=97=B6=E9=97=B4=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除contentPage2标签中的sort参数以避免排序冲突 - 更新时间字段从create_time改为publish_time,兼容性处理create_time作为备选 - 修复新闻列表和特色新闻的时间显示逻辑 --- public/themes/website/1/zh/demo/news.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/themes/website/1/zh/demo/news.html b/public/themes/website/1/zh/demo/news.html index b6047cd..642e40e 100644 --- a/public/themes/website/1/zh/demo/news.html +++ b/public/themes/website/1/zh/demo/news.html @@ -91,7 +91,7 @@ - {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time,is_top" subField="" name="hc_featured" limit="100" item="content_sub22" sort="sort asc" isTop="1"} + {hcTaglib:contentPage2 cid="$current_cate_id" mainField="id,category_id,title,sub_title,thumbnail,content,description,create_time,is_top" subField="" name="hc_featured" limit="100" item="content_sub22" isTop="1"} {/hcTaglib:contentPage2} {php} $news_has_featured = false; @@ -112,7 +112,7 @@ $content = $vo_content['content'] ?? ''; // 富文本 $description = $vo_content['description'] ?? ''; // 描述 $title = $vo_content['title'] ?? ''; // 标题 - $create_time_str = $vo_content['create_time'] ?? ''; + $create_time_str = $vo_content['publish_time'] ?? $vo_content['create_time']; {/php}