wip
This commit is contained in:
1 parent
8f6beac89b
commit
82f3654a05
5 files changed
+29
-25
No files matched your search
@@ -130,6 +130,7 @@ class LoadEventsQuery
|
||||
|
||||
$arr = [];
|
||||
foreach ($res as $value) {
|
||||
|
||||
$tmp = [];
|
||||
$tmp['match_id'] = $value->match_id;
|
||||
$tmp['sport_id'] = $value->sport_id;
|
||||
@@ -143,8 +144,8 @@ class LoadEventsQuery
|
||||
$tmp['exp_handicap'] = $value->exp_handicap;
|
||||
$tmp['exp_total'] = $value->exp_total;
|
||||
$tmp['result_code'] = $value->result_code;
|
||||
$tmp['home'] = $value->home->ss_team_name;
|
||||
$tmp['away'] = $value->away->ss_team_name;
|
||||
$tmp['home'] = $value->home->ss_team_name ?? 0;
|
||||
$tmp['away'] = $value->away->ss_team_name ?? 0;
|
||||
|
||||
switch ($statistic_type) {
|
||||
case 'gls':
|
||||
|
||||
@@ -24,9 +24,6 @@ class LoadPlayer
|
||||
|
||||
$ss_player_id = (int) $filter['ss_player_id'] ?? 0;
|
||||
|
||||
$start = $filter['start_date'] ?? 0;
|
||||
|
||||
$end = $filter['end_date'] ?? 0;
|
||||
|
||||
$statistic_type = $filter['statistic_type'] ?? 'gls';
|
||||
|
||||
@@ -50,6 +47,8 @@ class LoadPlayer
|
||||
|
||||
$res = StatistikoPlayer::with('event')->where('ss_player_id', (int) $ss_player_id)->get();
|
||||
|
||||
// dd($res);
|
||||
|
||||
|
||||
$tmp = [];
|
||||
foreach ($res as $value) {
|
||||
|
||||
Reference in new issue
Block a user