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