|
@@ -208,7 +208,9 @@ class CategoryService
|
|
if (!$category) {
|
|
if (!$category) {
|
|
throw new \Exception('分类不存在');
|
|
throw new \Exception('分类不存在');
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if (empty($category->category_super_path)) {
|
|
|
|
+ return "#" . $categoryId . "#";
|
|
|
|
+ }
|
|
return $category->category_super_path;
|
|
return $category->category_super_path;
|
|
}
|
|
}
|
|
}
|
|
}
|