wip season
This commit is contained in:
1 parent
7e30e93f90
commit
db8f32ad48
2 files changed
+4
-5
No files matched your search
@@ -15,12 +15,11 @@ class GetSeason
|
||||
$season = [];
|
||||
if ($seasonmode == 'halfyear') {
|
||||
if ((int) date('m') > 7)
|
||||
$tmp = $date->format('y') . '/' . $date->format('y') + 1;
|
||||
$season[] = $date->format('y') . '/' . $date->format('y') + 1;
|
||||
else
|
||||
$tmp = $date->format('y') - 1 . '/' . $date->format('y');
|
||||
$season[$tmp] = $tmp;
|
||||
$season[] = $date->format('y') - 1 . '/' . $date->format('y');
|
||||
} else {
|
||||
$season[$date->year] = $date->year;
|
||||
$season[] = (string) $date->year;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ class LoadEventsQuery
|
||||
->get();
|
||||
|
||||
// dd($res);
|
||||
// dd($season, $team_id, $home_id, $away_id, $res);
|
||||
// dd($season, $league_id, $res);
|
||||
|
||||
$arr = [];
|
||||
foreach ($res as $value) {
|
||||
|
||||
Reference in new issue
Block a user