refactor: 进一步区分banner的pc与mobile
This commit is contained in:
@@ -54,11 +54,12 @@ class Index extends Common
|
||||
$banners = SysBannerModel::with(['items' => function($query) {
|
||||
$query->where('type', 'IN', ['image', 'video'])->where('status', '=', 1)->order(['sort' => 'asc', 'id' => 'desc']);
|
||||
}])
|
||||
->atPlatform(request()->from)
|
||||
->uniqueLabel([
|
||||
'BANNER_67f61cd70e8e1',
|
||||
'BANNER_67f61cd70e8e1',
|
||||
'BANNER_67f633023a5b3',
|
||||
'BANNER_67f63f8ab5029',
|
||||
'BANNER_67f724ed81b1e',
|
||||
'BANNER_67f63f8ab5029',
|
||||
'BANNER_67f724ed81b1e',
|
||||
'BANNER_67f7392b4d83a',
|
||||
'BANNER_67f7410e244fb',
|
||||
'BANNER_67f76a96545f9',
|
||||
|
||||
Reference in New Issue
Block a user