作者 Cool
1 个管道 的构建 通过 耗费 0 秒

搜索接口修改

... ... @@ -109,6 +109,7 @@ class Index extends Api
$user_id = $this->auth->id;
$is_up = $this->request->param('is_up');
$where = [];
$keyword = $this->request->param('keyword');
if(!empty($keyword)){
$where['folder_name'] = ['like',"%$keyword%"];
... ... @@ -117,8 +118,6 @@ class Index extends Api
//判断是否为全部还是 已上架/已下架
if(!empty($is_up)){
$where['is_up'] = ['eq',$is_up];
}else{
$where = true;
}
... ...