|
|
@@ -2,6 +2,7 @@
|
|
2
|
2
|
|
|
3
|
3
|
namespace app\command;
|
|
4
|
4
|
|
|
|
5
|
+use app\common\model\user\User;
|
|
5
|
6
|
use app\common\repositories\movie\CinemaRepository;
|
|
6
|
7
|
use app\common\repositories\movie\CinemaSchedRepository;
|
|
7
|
8
|
use app\common\repositories\movie\FilmRepository;
|
|
|
@@ -34,11 +35,9 @@ class CinemaSchedCommand extends Command
|
|
34
|
35
|
$filmRepository = app()->make(FilmRepository::class);
|
|
35
|
36
|
$filmResult = $filmRepository->getFilm($this->page, $this->limit);
|
|
36
|
37
|
|
|
37
|
|
- foreach ($result['cinema_list'] as $key => $value) {
|
|
38
|
|
- foreach ($filmResult['film_list'] as $subKey => $subValue) {
|
|
39
|
|
- $this->doCinemaSched($subValue, $value);
|
|
40
|
|
-// if ($subValue['film_sign'] == 'F6556061D4' && $value['cinema_sign'] == 'CCB622D8D8') {
|
|
41
|
|
-// }
|
|
|
38
|
+ foreach ($filmResult['film_list'] as $key => $film) {
|
|
|
39
|
+ foreach ($result['cinema_list'] as $subKey => $cinema) {
|
|
|
40
|
+ $this->doCinemaSched($film, $cinema);
|
|
42
|
41
|
}
|
|
43
|
42
|
}
|
|
44
|
43
|
} catch (\Exception $exception) {
|
|
|
@@ -89,8 +88,8 @@ class CinemaSchedCommand extends Command
|
|
89
|
88
|
'hall_sign' => $value['hall_sign'],
|
|
90
|
89
|
'hall_name' => $value['hall_name'],
|
|
91
|
90
|
'stop_sell_time' => strtotime($value['stop_sell_time']),
|
|
92
|
|
- 'price' => $value['price'], // 原价
|
|
93
|
|
- 'cost_price' => $value['cost_price'], // 销售价
|
|
|
91
|
+ 'price' => $value['price'], // 销售价
|
|
|
92
|
+ 'cost_price' => $value['cost_price'], // 原价
|
|
94
|
93
|
'channel_price' => json_encode($value['channel_price'], JSON_FORCE_OBJECT)
|
|
95
|
94
|
];
|
|
96
|
95
|
$where = [
|