Jelajahi Sumber

获取父级/子级栏目------路由

15313670163 3 minggu lalu
induk
melakukan
4598c108dd
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/JsonRpc/WebsiteService.php

+ 2 - 2
app/JsonRpc/WebsiteService.php

@@ -2104,8 +2104,8 @@ class WebsiteService implements WebsiteServiceInterface
                         'name' => $name,
                         'cid' => $id
                     ];
-                    if (!empty($item->name_pinyin)) {
-                        $result['path'] = "/{$item->name_pinyin}/";
+                    if (!empty($alias_pinyin)) {
+                        $result['path'] = "/{$alias_pinyin}/";
                     }
                     return $result;
                 })->values()->all();