|
|
@@ -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']);
|