Browse Source

修改c端:获取频道页图书信息的接口

FengR 4 months ago
parent
commit
beb0578933
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/JsonRpc/NewsService.php

+ 2 - 2
app/JsonRpc/NewsService.php

@@ -2026,7 +2026,7 @@ private function fetchArticles($catId, $website, $limit, $isImageArticle = false
                             })
                             ->where('book.status', 2)
                             ->where('book.img_url', '!=', '')
-                            ->where('book.website_id', $website['website_id'])
+                            ->where('book.website_id', $website['website_id'])   
                             ->leftJoin('website_category', function($join) use ($website) {
                                 $join->on('book.cat_id', '=', 'website_category.category_id')
                                     ->where('website_category.website_id', '=', $website['website_id']);
@@ -2057,7 +2057,7 @@ private function fetchArticles($catId, $website, $limit, $isImageArticle = false
                                     ->orWhereRaw("JSON_CONTAINS(cat_arr_id, '$parentCatId')");
                             })
                             ->where('book.status', 2)
-                            ->where('book.website_id', $website['website_id'])
+                            ->where('book.website_id', $website['website_id'])  
                             ->leftJoin('website_category', function($join) use ($website) {
                                 $join->on('book.cat_id', '=', 'website_category.category_id')
                                     ->where('website_category.website_id', '=', $website['website_id']);