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

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

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