Prechádzať zdrojové kódy

修改c端接口获取某个栏目

rkljw 4 mesiacov pred
rodič
commit
22b881800a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/JsonRpc/WebsiteService.php

+ 1 - 1
app/JsonRpc/WebsiteService.php

@@ -1560,7 +1560,7 @@ class WebsiteService implements WebsiteServiceInterface
             $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','aLIas_pinyin')->first();
             // return Result::success($parent);
-            $category['aLIas_pinyin'] = $category['path'] ?? '';
+            // $category['aLIas_pinyin'] = $category['path'] ?? '';
             $category['parent_id'] = $parent['parent_id'] ?? '';
             $category['parent_pinyin'] = $parent['aLIas_pinyin'] ?? '';
             $category['parent_name'] = $parent['parent_name'] ?? '';