This commit is contained in:
toom1996
2025-07-11 15:08:22 +08:00
parent fca5d93e1b
commit 089b935cfb

View File

@ -53,13 +53,13 @@ class NewsService extends BaseService
'10' => [9, 10], '10' => [9, 10],
]; ];
$query = AppNews::formatQuery(['created_at']) $query = AppNews::formatQuery(['created_at'])
->where('is_delete', 0); ->where('is_delete', 0);
if (isset($relationId[$id])) { if (isset($relationId[$id])) {
$query->whereIn('platform', $relationId[$id]); $query->whereIn('platform', $relationId[$id]);
} else { } else {
$query->whereIn('platform', $id); $query->where('platform', $id);
} }
$query->select(['id']) $query->select(['id'])