refactor: 修改几在模块支持多分类筛选

This commit is contained in:
2025-06-06 11:24:58 +08:00
parent edde3924f2
commit 0f06586217
7 changed files with 43 additions and 3 deletions

View File

@@ -62,6 +62,10 @@ class VideoModel extends VideoBaseModel
if (empty($value)) {
return;
}
if (is_array($value) || str_contains($value, ',')) {
$query->whereIn('category_id', $value);
return;
}
$query->where('category_id', '=', $value);
}
}