diff --git a/app/Rpc/v1/NewsService.php b/app/Rpc/v1/NewsService.php index 0f78b6e..614a49c 100755 --- a/app/Rpc/v1/NewsService.php +++ b/app/Rpc/v1/NewsService.php @@ -53,13 +53,13 @@ class NewsService extends BaseService '10' => [9, 10], ]; - $query = AppNews::formatQuery(['created_at']) + $query = AppNews::formatQuery(['created_at']) ->where('is_delete', 0); if (isset($relationId[$id])) { $query->whereIn('platform', $relationId[$id]); } else { - $query->whereIn('platform', $id); + $query->where('platform', $id); } $query->select(['id'])