mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 12:23:06 +08:00
修正文章,提问,回答评论查询参数
This commit is contained in:
parent
cebd2f09e6
commit
2135f375e8
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user