Browse Source

改变目录文件的位置

visuddhinanda 6 months ago
parent
commit
c3a24d7502
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api-v12/app/Http/Controllers/CategoryController.php

+ 1 - 1
api-v12/app/Http/Controllers/CategoryController.php

@@ -129,7 +129,7 @@ class CategoryController extends Controller
     }
     }
     private function loadCategories()
     private function loadCategories()
     {
     {
-        $json = file_get_contents(public_path("app/palicanon/category/default.json"));
+        $json = file_get_contents(public_path("date/category/default.json"));
         $tree = json_decode($json, true);
         $tree = json_decode($json, true);
         $flat = self::flattenWithIds($tree);
         $flat = self::flattenWithIds($tree);
         return $flat;
         return $flat;