wip
This commit is contained in:
1 parent
ea477ad799
commit
11611b1696
3 files changed
+21
-2
No files matched your search
@@ -99,6 +99,12 @@ class FindFixture
|
||||
return;
|
||||
}
|
||||
|
||||
if (in_array(Nuh::$options['provider_id'], [5, 6])) {
|
||||
Mapper::updateOrCreate(['event_id' => $event_id], $event);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*************************************************
|
||||
* FIND
|
||||
*************************************************/
|
||||
|
||||
@@ -36,8 +36,6 @@ class Logifuture
|
||||
break;
|
||||
}
|
||||
|
||||
FindFixture::start();
|
||||
|
||||
$sportmap = Sport::map('logi', 1, [1, 2, 3, 5]);
|
||||
|
||||
$event_id_collector = [];
|
||||
|
||||
@@ -20,6 +20,8 @@ class Fixtures
|
||||
|
||||
FindFixture::start();
|
||||
|
||||
$event_id_collector = [];
|
||||
|
||||
$sportmap = Sport::map('magl', 1, [1, 3]);
|
||||
|
||||
if ($proxy) {
|
||||
@@ -95,8 +97,21 @@ class Fixtures
|
||||
$event['away'] = addslashes($teams[1]);
|
||||
|
||||
FindFixture::find($event);
|
||||
|
||||
if ($event['id']) {
|
||||
|
||||
$event_id_collector[] = $event['id'];
|
||||
|
||||
EventBookmaker::updateOrCreate([
|
||||
'event_id' => $event['id'],
|
||||
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
||||
], ['in_feed' => 1, 'bmoid' => $event['event_id']]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($event_id_collector) {
|
||||
EventBookmaker::whereNotIn('event_id', $event_id_collector)->where('bookmaker_id', Nuh::$options['bookmaker_id'])->update(['in_feed' => 0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user