zhuchengjie 2 年之前
父節點
當前提交
1ff37947ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();