This commit is contained in:
salam committed 2026-03-06 06:49:13 +01:00
1 parent c0db4a9fa2
commit e6cb106762
2 files changed
+6 -5

No files matched your search

@@ -58,7 +58,7 @@ class Willhill
if ($debug) {
$arr = [
'Mapper TxOdds to Bet365',
'Mapper TXOdds to Bet365',
'TXdds ID : '.$event['txodds_id'],
"Bet365 ID : $bet365_id",
'Willhill ID : '.$event['willhill_id'],
+5 -4
View File
@@ -92,7 +92,7 @@ class Odds
*************************************************/
if ($debug) {
Notice::note('TxOdds MARKET Lastcall', 'p');
Notice::note('TXOdds MARKET Lastcall', 'p');
}
$market = '&ot='.Nuh::$options['txodds_market_id'];
@@ -234,9 +234,10 @@ class Odds
'competition_group_id' => (int) $row->group['cgid'],
];
$res = DB::transaction(function () use ($event_id, $event) {
return Event::updateOrCreate(['id' => (int) $event_id, $event]);
$res = DB::transaction(function () use ($row, $event) {
return Event::updateOrCreate(['id' => (int) $row['id']], $event);
}, 5);
$event_id = $res->id;
$group = [
'competition_group_id' => (string) $row->group['cgid'],
@@ -281,7 +282,7 @@ class Odds
ElementGroup::updateOrCreate(['element_id' => (int) $row->ateam['id'], 'group_id' => (int) $row->group['id']], $element_group);
if (Event::where('id', $event_id)->exists()) {
// inconsteny with CONSTRAINT when getting only market updates
// inconsistency with CONSTRAINT when getting only market updates
foreach ($row->bookmaker as $book) {