Browse Source

完善功能

gorden 10 months ago
parent
commit
fa9ffc4db2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/admin/service/sys_manage/CategoryService.php

+ 3 - 1
app/admin/service/sys_manage/CategoryService.php

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