fly 5 năm trước cách đây
mục cha
commit
77bbd4f135
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      app/Modules/RecommendBook/Services/RecommendService.php

+ 3 - 3
app/Modules/RecommendBook/Services/RecommendService.php

@@ -25,8 +25,8 @@ class RecommendService
             ['is_show', '=', 1],
             ['channel', '=', $channel],
             ['subject', '=', $type]
-        ])->select('bid')
-            ->orderBy('sequence', 'asc')
-            ->get();
+        ])->orderBy('sequence', 'asc')
+            ->pluck('bid')
+            ->all();
     }
 }