wip
This commit is contained in:
1 parent
b8e7830ea4
commit
157c036f4f
1 file changed
+5
-3
@@ -38,7 +38,7 @@ class GenerateAlarms
|
||||
foreach ($client->sport as $sport_id) {
|
||||
|
||||
if ($debug) {
|
||||
Notice::note('Sport: '.$sport_id, 'b');
|
||||
Notice::note('Sport: ' . $sport_id, 'b');
|
||||
}
|
||||
|
||||
$multilines = AlarmMultilineSetting::get($sport_id);
|
||||
@@ -52,7 +52,7 @@ class GenerateAlarms
|
||||
$res = EventBookmaker::with('event')->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get();
|
||||
|
||||
if ($debug) {
|
||||
Notice::note('Event: '.\count($res), 'b');
|
||||
Notice::note('Event: ' . \count($res), 'b');
|
||||
}
|
||||
// $res = EventBookmaker::where('event_id', 14597944)->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get();
|
||||
|
||||
@@ -72,7 +72,9 @@ class GenerateAlarms
|
||||
// check if client has odds
|
||||
$client_odds = AlarmFilterClient::get($odds, $client_bookmaker_id);
|
||||
|
||||
AlarmStore::get($table, $event->event_id, $oddnames[$table], $client_bookmaker_id, $alarm_threshold[$multiline_id], $compare_odds, $client_odds);
|
||||
if (isset($oddnames[$table]) && isset($alarm_threshold[$multiline_id])) {
|
||||
AlarmStore::get($table, $event->event_id, $oddnames[$table], $client_bookmaker_id, $alarm_threshold[$multiline_id], $compare_odds, $client_odds);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user