refactor: 修改产品分类列表接口
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user