feat: Nas专题帮助中心

This commit is contained in:
2025-05-06 14:49:30 +08:00
parent 018a410943
commit d7fe3bfd89
14 changed files with 930 additions and 0 deletions

View File

@@ -29,6 +29,16 @@ class ArticleCategoryModel extends ArticleCategoryBaseModel
$query->where('language_id', '=', $language);
}
// 所属唯一标识范围查询
public function scopeUniqueLabel($query, $unique_label)
{
if (is_array($unique_label)) {
$query->where('unique_label', 'IN', $unique_label);
return;
}
$query->where('unique_label', '=', $unique_label);
}
// 所属上级分类范围查询
public function scopeParent($query, $parent)
{