zhuchengjie 2 лет назад
Родитель
Сommit
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;
     }