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

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

@@ -10,14 +10,14 @@ use App\Modules\Channel\Models\ChannelRecommendBooks;
 class ChannelRecommendBooksService
 class ChannelRecommendBooksService
 {
 {
 
 
-    static function getChannelBid()
+    static function getChannelBid($channel_id)
     {
     {
-        return ChannelRecommendBooks::pluck('bid')->all();
+        return ChannelRecommendBooks::where('channel_id',$channel_id)->pluck('bid')->all();
     }
     }
 
 
     static function getMergerBids($channel_id,$bid)
     static function getMergerBids($channel_id,$bid)
     {
     {
-        $bids = BookConfigService::getAvailableBIdsbyBids(self::getChannelBid(),$channel_id);
+        $bids = BookConfigService::getAvailableBIdsbyBids(self::getChannelBid($channel_id),$channel_id);
         if (empty($bids)){
         if (empty($bids)){
             return  [];
             return  [];
         }
         }