zhuchengjie 2 years ago
parent
commit
1ff37947ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Modules/Channel/Services/ChannelRecommendBooksService.php

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

@@ -20,7 +20,7 @@ class ChannelRecommendBooksService
         $query->where('channel_recommend_books.channel_id',$channel_id);
 
         if(!empty($priority) && $priority != 0){
-            $query->where('channel_recommend_books.priority','<=',$priority)->where('bid','!=',$bid);
+            $query->where('channel_recommend_books.priority','<=',$priority)->where('channel_recommend_books.bid','!=',$bid);
         }
 
         $list = $query->limit($limit)->get()->toArray();