zhuchengjie 2 năm trước cách đây
mục cha
commit
997741f514

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