Browse Source

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

15313670163 3 tuần trước cách đây
mục cha
commit
b88eb085e5
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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)