wip
This commit is contained in:
1 parent
513dc7002d
commit
2312a9cc57
1 file changed
+3
-3
@@ -38,7 +38,7 @@ class GenerateAlarms
|
|||||||
foreach ($client->sport as $sport_id) {
|
foreach ($client->sport as $sport_id) {
|
||||||
|
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
Notice::note('Sport: ' . $sport_id, 'b');
|
Notice::note('Sport: '.$sport_id, 'b');
|
||||||
}
|
}
|
||||||
|
|
||||||
$multilines = AlarmMultilineSetting::get($sport_id);
|
$multilines = AlarmMultilineSetting::get($sport_id);
|
||||||
@@ -52,13 +52,13 @@ class GenerateAlarms
|
|||||||
$res = EventBookmaker::with('event')->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get();
|
$res = EventBookmaker::with('event')->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get();
|
||||||
|
|
||||||
if ($debug) {
|
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();
|
// $res = EventBookmaker::where('event_id', 14597944)->where('bookmaker_id', $client_bookmaker_id)->where('sport_id', $sport_id)->get();
|
||||||
|
|
||||||
foreach ($res as $event) {
|
foreach ($res as $event) {
|
||||||
|
|
||||||
if ($event->event->starttime > now()) {
|
if ($event?->event?->starttime > now()) {
|
||||||
|
|
||||||
foreach ($multilines as $multiline_id => $multiline) {
|
foreach ($multilines as $multiline_id => $multiline) {
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user