set alatm for total and point only when same hcap or total
This commit is contained in:
1 parent
bfecd7b536
commit
a6ef8e74cc
3 files changed
+39
-13
No files matched your search
@@ -17,6 +17,11 @@ class AlarmLoadOdds
|
||||
$arr = [];
|
||||
|
||||
foreach ($res as $value) {
|
||||
if (in_array($table, ['odds_totals', 'odds_totals_ht', 'odds_totals_q1'])) {
|
||||
$arr[(int) $value->bookmaker_id]['total'] = (float) $value->total;
|
||||
} elseif (in_array($table, ['odds_points', 'odds_points_ht', 'odds_points_q1'])) {
|
||||
$arr[(int) $value->bookmaker_id]['handicap'] = (float) $value->handicap;
|
||||
}
|
||||
if ($table == 'odds_dc') {
|
||||
$arr[(int) $value->bookmaker_id]['margin'] = (float) $value->margin * 2;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user