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 @@