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 = [];
|
$season = [];
|
||||||
if ($seasonmode == 'halfyear') {
|
if ($seasonmode == 'halfyear') {
|
||||||
if ((int) date('m') > 7)
|
if ((int) date('m') > 7)
|
||||||
$tmp = $date->format('y') . '/' . $date->format('y') + 1;
|
$season[] = $date->format('y') . '/' . $date->format('y') + 1;
|
||||||
else
|
else
|
||||||
$tmp = $date->format('y') - 1 . '/' . $date->format('y');
|
$season[] = $date->format('y') - 1 . '/' . $date->format('y');
|
||||||
$season[$tmp] = $tmp;
|
|
||||||
} else {
|
} else {
|
||||||
$season[$date->year] = $date->year;
|
$season[] = (string) $date->year;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ class LoadEventsQuery
|
|||||||
->get();
|
->get();
|
||||||
|
|
||||||
// dd($res);
|
// dd($res);
|
||||||
// dd($season, $team_id, $home_id, $away_id, $res);
|
// dd($season, $league_id, $res);
|
||||||
|
|
||||||
$arr = [];
|
$arr = [];
|
||||||
foreach ($res as $value) {
|
foreach ($res as $value) {
|
||||||
|
|||||||
Reference in new issue
Block a user