set alatm for total and point only when same hcap or total

This commit is contained in:
salam committed 2026-02-24 18:23:12 +01:00
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 {