Browse Source

fix(web): 修复搜索条件判断

tbphp 1 year ago
parent
commit
ecb4890c4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/a/controller/Search.php

+ 1 - 1
application/a/controller/Search.php

@@ -25,7 +25,7 @@ class Search extends Controller
             }
 
             // 推荐
-            $list = Content::getList($y);
+            $list = Content::getList($y, 20, ['hot' => ['in', ['y', 'n']]]);
             $this->assign('total', $list['total']);
             $this->assign('list', $list['data']);
             $this->assign('page', $list['page']);