logifurture wip

This commit is contained in:
salam committed 2026-01-05 07:38:28 +01:00
1 parent 99b901009c
commit a96abae35a
15 files changed
+2143 -1518

No files matched your search

+8 -2
View File
@@ -127,6 +127,12 @@ class Odds
foreach ($res as $id) {
$_calls[] = $url."&ot=$markets&peid=".$id;
}
} elseif (Nuh::$options['g']) {
// by groups
$res = Event::where('starttime', '>', Carbon::now()->toDateTimeString())->where('starttime', '<', Carbon::now()->addDays(1)->toDateTimeString())->groupBy('group_id')->pluck('group_id');
foreach ($res as $id) {
$_calls[] = $url."&ot=$markets&pgid=".$id;
}
} elseif (Nuh::$options['b']) {
// one day
$res = Event::where('starttime', '>', Carbon::now()->toDateTimeString())->where('starttime', '<', Carbon::now()->addDays(1)->toDateTimeString())->pluck('id');
@@ -150,6 +156,8 @@ class Odds
$counter = 0;
foreach ($_calls as $url) {
$counter++;
$data = Xml::load($url);
if ($echo) {
@@ -203,8 +211,6 @@ class Odds
];
Element::updateOrCreate(['id' => (int) $row->ateam['id']], $element);
$counter++;
foreach ($row->bookmaker as $book) {
Nuh::$id = (int) $row['id'];