update
This commit is contained in:
@ -55,9 +55,9 @@ class NewsService extends BaseService
|
||||
|
||||
$query = AppNews::formatQuery(['created_at'])
|
||||
->where('is_delete', 0);
|
||||
|
||||
var_dump($relationId[$id]);
|
||||
if (isset($relationId[$id])) {
|
||||
$query->whereIn('platform', $relationId[$id]);
|
||||
$query->whereIn('platform', [$id]);
|
||||
} else {
|
||||
$query->where('platform', $id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user