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

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

@@ -24,10 +24,12 @@ class ChannelRecommendBooksService
         }
 
         $list = $query->limit($limit)->get()->toArray();
-
+        \Log::info('count:$limit:'.$limit);
+        \Log::info($list);
         $data = array_merge($list,$data);
         if(count($data) < 3){
             $count = 3 - count($data);
+            \Log::info('count:'.$count);
             self::getRecommendBooks($channel_id,0,$count,$data);
         }