zhuchengjie 2 anni fa
parent
commit
3be916a7b1

+ 1 - 1
app/Modules/Channel/Services/ChannelRecommendBooksService.php

@@ -14,7 +14,7 @@ class ChannelRecommendBooksService
         if(!isset($channel_id)) return [];
         if(!isset($channel_id)) return [];
         $query = ChannelRecommendBooks::leftjoin('book_configs','book_configs.bid','channel_recommend_books.bid')
         $query = ChannelRecommendBooks::leftjoin('book_configs','book_configs.bid','channel_recommend_books.bid')
             ->leftjoin('books','books.id','channel_recommend_books.bid')
             ->leftjoin('books','books.id','channel_recommend_books.bid')
-            ->select('books.intro','books.category_name','book_configs.book_name','book_configs.cover','book_configs.bid')
+            ->select('books.intro','books.category_name','book_configs.book_name','book_configs.cover','book_configs.bid','channel_recommend_books.priority')
             ->orderBy('channel_recommend_books.priority','DESC')->orderBy('channel_recommend_books.created_at','DESC');
             ->orderBy('channel_recommend_books.priority','DESC')->orderBy('channel_recommend_books.created_at','DESC');
 
 
         $query->where('channel_recommend_books.channel_id',$channel_id);
         $query->where('channel_recommend_books.channel_id',$channel_id);