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