wip
This commit is contained in:
1 parent
88a043c612
commit
91c17ddf03
1 file changed
+6
-2
@@ -29,12 +29,16 @@ class AlarmStore
|
|||||||
$threshold = $client_odds[$oddname] - $compare_odds[$oddname];
|
$threshold = $client_odds[$oddname] - $compare_odds[$oddname];
|
||||||
|
|
||||||
if (in_array($table, ['odds_totals', 'odds_totals_ht', 'odds_totals_q1'])) {
|
if (in_array($table, ['odds_totals', 'odds_totals_ht', 'odds_totals_q1'])) {
|
||||||
if ($client_odds['total'] == (float) $compare_odds['total']) {
|
if ((float) $client_odds['total'] == (float) $compare_odds['total']) {
|
||||||
self::setAlarm($update_array, $fieldname, $threshold, $alarm_threshold);
|
self::setAlarm($update_array, $fieldname, $threshold, $alarm_threshold);
|
||||||
|
} else {
|
||||||
|
$update_array[$fieldname] = 0;
|
||||||
}
|
}
|
||||||
} elseif (in_array($table, ['odds_points', 'odds_points_ht', 'odds_points_q1'])) {
|
} elseif (in_array($table, ['odds_points', 'odds_points_ht', 'odds_points_q1'])) {
|
||||||
if ($client_odds['handicap'] == (float) $compare_odds['handicap']) {
|
if ((float) $client_odds['handicap'] == (float) $compare_odds['handicap']) {
|
||||||
self::setAlarm($update_array, $fieldname, $threshold, $alarm_threshold);
|
self::setAlarm($update_array, $fieldname, $threshold, $alarm_threshold);
|
||||||
|
} else {
|
||||||
|
$update_array[$fieldname] = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self::setAlarm($update_array, $fieldname, $threshold, $alarm_threshold);
|
self::setAlarm($update_array, $fieldname, $threshold, $alarm_threshold);
|
||||||
|
|||||||
Reference in new issue
Block a user