fix : 제품 카테고리 목록 조회 - static -> instance 변경

This commit is contained in:
2025-08-25 23:06:55 +09:00
committed by hskwon
parent 52bf8527e2
commit c1996216c2

View File

@@ -14,13 +14,13 @@ class ProductService extends Service
/**
* 카테고리 트리 전체 조회 (parent_id = null 기준)
*/
public static function getCategory($request)
public function getCategory($request)
{
$parentId = $request->parentId ?? null;
$group = $request->group ?? 'category';
// 재귀적으로 트리 구성
$list = self::fetchCategoryTree($parentId, $group);
$list = $this->fetchCategoryTree($parentId, $group);
return $list;
}