1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 12:23:06 +08:00

修正文章,提问,回答评论查询参数

This commit is contained in:
koogua 2021-09-30 21:00:03 +08:00
parent cebd2f09e6
commit 2135f375e8
3 changed files with 5 additions and 0 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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();