소스 검색

修改c端:获取企业列表的接口

FengR 4 주 전
부모
커밋
90c1c0ef09
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/JsonRpc/NewsService.php

+ 1 - 0
app/JsonRpc/NewsService.php

@@ -7574,6 +7574,7 @@ class NewsService implements NewsServiceInterface
       ->when(isset($data['category_id']) && !empty($data['category_id']), function ($query) use ($category_id) {
         $query->where('category_id', $category_id);
       })
+      ->where('status',1)
       ->select('id', 'title', 'introduce', 'description', 'content', 'category_id', 'cat_arr_id', 'updated_at')
       ->orderBy('updated_at', 'desc')
       ->paginate($data['pageSize'], ['*'], 'page', $data['page']);