fix: 修复兼容配件类型状态筛选bug
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s

This commit is contained in:
2026-07-09 10:05:50 +08:00
parent d71251fecf
commit 732d01e7b0

View File

@@ -27,7 +27,7 @@ class ProductCompatParts
])
->language(request()->lang_id)
->where(function($query) use($params) {
if (empty($params['is_show'])) return;
if (is_null($params['is_show'])) return;
$query->disabled($params['is_show'] == 1 ? 0 : 1);
})
->withSearch('name', [