From b64168120a759cfdb6b69d3393f3c78e8e242404 Mon Sep 17 00:00:00 2001 From: koogua Date: Thu, 30 Sep 2021 21:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=96=87=E7=AB=A0=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E9=97=AE=EF=BC=8C=E5=9B=9E=E7=AD=94,=E8=AF=BE?= =?UTF-8?q?=E6=97=B6=E8=AF=84=E8=AE=BA=E6=9F=A5=E8=AF=A2=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Logic/Answer/CommentList.php | 2 ++ app/Services/Logic/Article/CommentList.php | 1 + app/Services/Logic/Chapter/CommentList.php | 2 ++ app/Services/Logic/Question/CommentList.php | 2 ++ 4 files changed, 7 insertions(+) diff --git a/app/Services/Logic/Answer/CommentList.php b/app/Services/Logic/Answer/CommentList.php index 959e9ab7..8c32e903 100644 --- a/app/Services/Logic/Answer/CommentList.php +++ b/app/Services/Logic/Answer/CommentList.php @@ -31,6 +31,8 @@ class CommentList extends LogicService $params['item_id'] = $answer->id; $params['item_type'] = CommentModel::ITEM_ANSWER; $params['published'] = CommentModel::PUBLISH_APPROVED; + $params['parent_id'] = 0; + $params['deleted'] = 0; $sort = $pagerQuery->getSort(); $page = $pagerQuery->getPage(); diff --git a/app/Services/Logic/Article/CommentList.php b/app/Services/Logic/Article/CommentList.php index be2cb373..ed2f034f 100644 --- a/app/Services/Logic/Article/CommentList.php +++ b/app/Services/Logic/Article/CommentList.php @@ -31,6 +31,7 @@ class CommentList extends LogicService $params['item_id'] = $article->id; $params['item_type'] = CommentModel::ITEM_ARTICLE; $params['published'] = CommentModel::PUBLISH_APPROVED; + $params['parent_id'] = 0; $params['deleted'] = 0; $sort = $pagerQuery->getSort(); diff --git a/app/Services/Logic/Chapter/CommentList.php b/app/Services/Logic/Chapter/CommentList.php index ca0881ea..b1d64521 100644 --- a/app/Services/Logic/Chapter/CommentList.php +++ b/app/Services/Logic/Chapter/CommentList.php @@ -31,6 +31,8 @@ class CommentList extends LogicService $params['item_id'] = $chapter->id; $params['item_type'] = CommentModel::ITEM_CHAPTER; $params['published'] = CommentModel::PUBLISH_APPROVED; + $params['parent_id'] = 0; + $params['deleted'] = 0; $sort = $pagerQuery->getSort(); $page = $pagerQuery->getPage(); diff --git a/app/Services/Logic/Question/CommentList.php b/app/Services/Logic/Question/CommentList.php index 14add9ef..aed22e64 100644 --- a/app/Services/Logic/Question/CommentList.php +++ b/app/Services/Logic/Question/CommentList.php @@ -31,6 +31,8 @@ class CommentList extends LogicService $params['item_id'] = $question->id; $params['item_type'] = CommentModel::ITEM_QUESTION; $params['published'] = CommentModel::PUBLISH_APPROVED; + $params['parent_id'] = 0; + $params['deleted'] = 0; $sort = $pagerQuery->getSort(); $page = $pagerQuery->getPage();