zhuchengjie 2 년 전
부모
커밋
b049009045
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      app/Modules/Channel/Services/ChannelRecommendBooksService.php

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

@@ -31,10 +31,9 @@ class ChannelRecommendBooksService
             $count = 3 - count($lists);
             \Log::info('count:'.$count);
             self::getRecommendBooks($channel_id,0,$count,$lists);
+        }else{
+            return $lists;
         }
-        \Log::info('return:lists');
-        \Log::info($lists);
-        return $lists;
     }
 
     static function incrRecommendNum($channel_id,$bids)