fly 5 years ago
parent
commit
10861a84f8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Modules/Book/Services/RecoBannerService.php

+ 2 - 1
app/Modules/Book/Services/RecoBannerService.php

@@ -21,7 +21,8 @@ class RecoBannerService
 
 
     public function getByType(array $reco_type, int $type)
     public function getByType(array $reco_type, int $type)
     {
     {
-        return RecoBanner::whereIn('reco_type', $reco_type)->where('start_time', '<=', date('Y-m-d H:i:s'))
+        return RecoBanner::whereIn('reco_type', $reco_type)
+            ->where('start_time', '<=', date('Y-m-d H:i:s'))
             ->where('end_time', '>=', date('Y-m-d H:i:s'))
             ->where('end_time', '>=', date('Y-m-d H:i:s'))
             ->where('type', $type)
             ->where('type', $type)
             ->select('redirect_url', 'banner_url')
             ->select('redirect_url', 'banner_url')