Browse Source

fix(search): search-pali-wbw 修复 path 解码为对象导致 level>=100 报错

visuddhinanda 3 days ago
parent
commit
092a8b8a39
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api-v13/app/Http/Resources/SearchPaliWbwResource.php

+ 1 - 1
api-v13/app/Http/Resources/SearchPaliWbwResource.php

@@ -30,7 +30,7 @@ class SearchPaliWbwResource extends JsonResource
             ->where('paragraph', $this->paragraph)
             ->first();
         if ($paliText) {
-            $data['path'] = json_decode($paliText->path);
+            $data['path'] = json_decode($paliText->path, true);
             if ($paliText->level < 100) {
                 $data['paliTitle'] = $paliText->toc;
                 $book = $this->book;