master
wangxinglong 2021-12-22 14:23:50 +08:00
parent 0d64a57f45
commit 0a851eab84
2 changed files with 5 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class Coupon extends Base
try {
$whereMap = [];
$sortOrder = ['received_time' => 'desc'];
$sortOrder = ['id' => 'desc'];
$fields = [
'id',
'is_verificated as isVerificated',

View File

@ -177,7 +177,10 @@ class Comment extends Base
$page = $this->request->param('page/d', 1);
$size = $this->request->param('size/d', 30);
$whereMap = [["comment.is_delete", "=", CommentModel::COMMON_OFF]];
$whereMap = [
["comment.is_delete", "=", CommentModel::COMMON_OFF],
["comment.state", "in", [CommentModel::state_default,CommentModel::state_success]],
];
$orders = ['comment.id' => 'desc'];
if (!empty($keyword)) {
$whereMap[] = ['account.nick_name|comment.comment', 'like', "%$keyword%"];