Browse Source

修改获取栏目

15313670163 1 month ago
parent
commit
0abaf3dc88
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/JsonRpc/WebsiteService.php

+ 2 - 1
app/JsonRpc/WebsiteService.php

@@ -1495,8 +1495,9 @@ class WebsiteService implements WebsiteServiceInterface
                 return Result::error("暂无此导航",0);
             }
             $category['children_count'] = WebsiteCategory::where('website_id',$data['website_id'])->where('pid',$data['category_id'])->count();
-            $parent = WebsiteCategory::where('website_id',$data['website_id'])->where('category_id',$category['pid'])->select('category_id as parent_id','alias as parent_name')->first();
+            $parent = WebsiteCategory::where('website_id',$data['website_id'])->where('category_id',$category['pid'])->select('category_id as parent_id','alias as parent_name','aLIas_pinyin')->first();
             $category['parent_id'] = $parent['parent_id']?? '';
+            $category['parent_pinyin'] = $parent['aLIas_pinyin']?? '';
             $category['parent_name'] = $parent['parent_name']?? '';
             return Result::success($category);
         }else{