fix: 横幅查询未过滤禁用的数据
This commit is contained in:
@@ -29,6 +29,7 @@ class Faq extends Common
|
||||
'at_platform' => request()->from
|
||||
])
|
||||
->type('image')
|
||||
->enabled()
|
||||
->visible(['id', 'title', 'image', 'link'])
|
||||
->find();
|
||||
View::assign('banner', $banner);
|
||||
|
||||
@@ -479,6 +479,7 @@ class Product extends Common
|
||||
->where('status', '=', 1)
|
||||
->order(['sort' => 'asc', 'id' => 'desc']);
|
||||
}])
|
||||
->atPlatform(request()->from)
|
||||
->uniqueLabel(['BANNER_680dd7ceaa529'])
|
||||
->language($this->lang_id)
|
||||
->enabled(true)
|
||||
|
||||
@@ -66,7 +66,8 @@ class TopicNas extends Common
|
||||
// 获取banner数据
|
||||
$banners = SysBannerModel::with(['items' => function($query) {
|
||||
$query->withoutField(['sort', 'created_at', 'updated_at', 'deleted_at'])
|
||||
->order(['sort' => 'asc', 'id' => 'desc']);
|
||||
->order(['sort' => 'asc', 'id' => 'desc'])
|
||||
->enabled(true);
|
||||
}])
|
||||
->atPlatform(request()->from)
|
||||
->uniqueLabel([
|
||||
@@ -149,8 +150,9 @@ class TopicNas extends Common
|
||||
$cooperation_cotacts = [];
|
||||
// 获取banner数据
|
||||
$banners = SysBannerModel::with(['items' => function($query) {
|
||||
$query->withoutField(['sort', 'created_at', 'updated_at', 'deleted_at']);
|
||||
$query->withoutField(['sort', 'created_at', 'updated_at', 'deleted_at'])->enabled(true);
|
||||
}])
|
||||
->atPlatform(request()->from)
|
||||
->uniqueLabel([
|
||||
'BANNER_6810670b8ef17',
|
||||
'BANNER_681067451b78f',
|
||||
@@ -203,8 +205,9 @@ class TopicNas extends Common
|
||||
$contacts = [];
|
||||
// 获取banner数据
|
||||
$banners = SysBannerModel::with(['items' => function ($query) {
|
||||
$query->withoutField(['sort', 'created_at', 'updated_at', 'deleted_at']);
|
||||
$query->withoutField(['sort', 'created_at', 'updated_at', 'deleted_at'])->enabled(true);
|
||||
}])
|
||||
->atPlatform(request()->from)
|
||||
->uniqueLabel(['BANNER_6819754be2dc6'])
|
||||
->language($this->lang_id)
|
||||
->enabled(true)
|
||||
@@ -279,8 +282,9 @@ class TopicNas extends Common
|
||||
$data = [];
|
||||
// 获取banner数据
|
||||
$banners = SysBannerModel::with(['items' => function($query) {
|
||||
$query->withoutField(['sort', 'created_at', 'updated_at', 'deleted_at']);
|
||||
$query->withoutField(['sort', 'created_at', 'updated_at', 'deleted_at'])->enabled(true);
|
||||
}])
|
||||
->atPlatform(request()->from)
|
||||
->uniqueLabel([
|
||||
'BANNER_6810798e6e828',
|
||||
'BANNER_68107a0a63910',
|
||||
|
||||
Reference in New Issue
Block a user