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