fly 5 년 전
부모
커밋
10861a84f8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)
     {
-        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('type', $type)
             ->select('redirect_url', 'banner_url')