refactor: 修改产品分类列表接口

This commit is contained in:
2025-03-31 14:11:10 +08:00
parent 237d786cbe
commit 95d671c161
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class ProductCategory
'name_nullable' => $params['keywords']??null
])
->where(function($query) use($params) {
if (!empty($params['is_show'])) {
if (isset($params['is_show'])) {
$query->where('is_show', '=', $params['is_show']);
}
})