fix : 제품 카테고리 목록 조회 - static -> instance 변경
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user