zhuchengjie 2 år sedan
förälder
incheckning
51cc57aded
1 ändrade filer med 1 tillägg och 1 borttagningar
  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.id','<=',$priority)->where('bid','!=',$bid);
+            $query->where('channel_recommend_books.priority','<=',$priority)->where('bid','!=',$bid);
         }
 
         $list = $query->limit($limit)->get()->toArray();