refactor: 修改系统页面链接接口
This commit is contained in:
@@ -213,6 +213,7 @@ class System
|
|||||||
])
|
])
|
||||||
->language($lang_id)
|
->language($lang_id)
|
||||||
->category($category_id)
|
->category($category_id)
|
||||||
|
->enabled()
|
||||||
->isShow(true)
|
->isShow(true)
|
||||||
->select();
|
->select();
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,12 @@ class ProductModel extends ProductBaseModel
|
|||||||
$query->where('category_id', '=', $value);
|
$query->where('category_id', '=', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 启用状态查询
|
||||||
|
public function scopeEnabled($query)
|
||||||
|
{
|
||||||
|
$query->where('status', '=', 1);
|
||||||
|
}
|
||||||
|
|
||||||
// 上架状态查询
|
// 上架状态查询
|
||||||
public function scopeIsShowNullable($query, bool|null $value)
|
public function scopeIsShowNullable($query, bool|null $value)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user