Ver Fonte

完善功能

gorden há 11 meses atrás
pai
commit
fa9ffc4db2
1 ficheiros alterados com 3 adições e 1 exclusões
  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;
     }
 }