소스 검색

乡村网-获取特殊新闻模块

15313670163 3 주 전
부모
커밋
b88eb085e5
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      app/JsonRpc/NewsService.php

+ 3 - 3
app/JsonRpc/NewsService.php

@@ -1038,8 +1038,8 @@ class NewsService implements NewsServiceInterface
                     }) 
                     ->where('imgurl', '!=', '') 
                     ->whereRaw("JSON_CONTAINS(category_arr_id, '".intval($parentCatId)."')") 
-                    ->leftJoin('website_category', 'website_category.category_id', 'article.catid','website_category.aLIas_pinyin') 
-                    ->select('article.*','website_category.category_id','website_category.alias') 
+                    ->leftJoin('website_category', 'website_category.category_id', 'article.catid') 
+                    ->select('article.*','website_category.category_id','website_category.alias','website_category.aLIas_pinyin') 
                     ->orderBy('updated_at', 'desc') 
                     ->limit($parentImgNum) 
                     ->get()->all(); 
@@ -1051,7 +1051,7 @@ class NewsService implements NewsServiceInterface
                         })->orWhereNull("ignore_ids"); 
                     }) 
                     ->whereRaw("JSON_CONTAINS(category_arr_id, '".intval($parentCatId)."')") 
-                    ->leftJoin('website_category', 'website_category.category_id', 'article.catid','website_category.aLIas_pinyin') 
+                    ->leftJoin('website_category', 'website_category.category_id', 'article.catid') 
                     ->select('article.*','website_category.category_id','website_category.alias','website_category.aLIas_pinyin') 
                     ->orderBy('updated_at', 'desc') 
                     ->limit($parentTextNum)