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);
         }