From 12d64668c6783cf1aa9c2f07a182805939d38cf3 Mon Sep 17 00:00:00 2001 From: liyukun <1099438829@qq.com> Date: Mon, 13 Dec 2021 00:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AF=84=E8=AE=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/common.php | 2 +- public/template/default/pc/article/article.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/index/common.php b/app/index/common.php index 3bb64e9..d95da64 100644 --- a/app/index/common.php +++ b/app/index/common.php @@ -662,7 +662,7 @@ function tpl_get_comment_list($id, $type, $pageSize = 10, $orderBy) switch ($type) { case 'top': //根据自定义条件获取文章(where语句) - $commentModel = $commentModel->where('document_id', $id); + $commentModel = $commentModel->where('document_id', $id)->where('pid', 0); break; case 'son': //获取栏目下文章 diff --git a/public/template/default/pc/article/article.html b/public/template/default/pc/article/article.html index fa8a733..aca7ccb 100644 --- a/public/template/default/pc/article/article.html +++ b/public/template/default/pc/article/article.html @@ -208,7 +208,7 @@