Просмотр исходного кода

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

15313670163 3 недель назад
Родитель
Сommit
4598c108dd
1 измененных файлов с 2 добавлено и 2 удалено
  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();