family 1 год назад
Родитель
Сommit
db4a64c53c

+ 1 - 1
app/common/repositories/movie/CinemaSchedRepository.php

@@ -112,7 +112,7 @@ class CinemaSchedRepository extends BaseRepository
112 112
     public function getCinemaFilmSched($page, $limit, $cinema_sign, $film_sign, $show_date)
113 113
     {
114 114
         $field = 'relation_id,sched_sign,film_sign,film_name,show_date,show_time,cinema_sign,cinema_name,hall_sign,hall_name,price';
115
-        $where = ['cinema_sign' => $cinema_sign, 'film_sign' => $film_sign, 'show_date' => strtotime($show_date)];
115
+        $where = ['cinema_sign' => $cinema_sign, 'film_sign' => $film_sign, 'show_date' => $show_date];
116 116
 
117 117
         $cinema_sched = $this->dao->search(null, $where)
118 118
             ->when($page && $limit, function ($query) use ($page, $limit) {

+ 1 - 1
app/controller/api/movie/Movie.php

@@ -154,7 +154,7 @@ class Movie extends BaseController
154 154
 
155 155
         /** @var CinemaSchedRepository $cinemaSchedRepository */
156 156
         $cinemaSchedRepository = app()->make(CinemaSchedRepository::class);
157
-        return app('json')->success($cinemaSchedRepository->getCinemaFilmSched($page, $limit, $cinema_sign, $film_sign, date('Y') . '-' . $show_date));
157
+        return app('json')->success($cinemaSchedRepository->getCinemaFilmSched($page, $limit, $cinema_sign, $film_sign, $show_date));
158 158
     }
159 159
 
160 160
     /**