refactor: 进一步区分banner的pc与mobile

This commit is contained in:
2025-05-27 14:02:14 +08:00
parent 9c215476f9
commit 9787c9b3e3
5 changed files with 47 additions and 9 deletions

View File

@@ -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',