소스 검색

修改路由匹配的接口-添加别名字段;

15313670163 1 개월 전
부모
커밋
72846beaea
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/JsonRpc/WebsiteService.php

+ 1 - 1
app/JsonRpc/WebsiteService.php

@@ -2150,7 +2150,7 @@ class WebsiteService implements WebsiteServiceInterface
         }
         // return Result::success($data);
         if (isset($data['pinyin']) &&!empty($data['pinyin'])) {
-            $result = WebsiteCategory::where('website_id',$data['website_id'])->where('aLIas_pinyin',$data['pinyin'])->first(['category_id']);
+            $result = WebsiteCategory::where('website_id',$data['website_id'])->where('aLIas_pinyin',$data['pinyin'])->first(['category_id','alias']);
         }
         if(isset($data['foot_pinyin']) &&!empty($data['foot_pinyin'])){
             $result = FooterCategory::where('website_id',$data['website_id'])->where('name_pinyin',$data['foot_pinyin'])->first(['id']);