wip
This commit is contained in:
1 parent
c0db4a9fa2
commit
e6cb106762
2 files changed
+6
-5
No files matched your search
@@ -58,7 +58,7 @@ class Willhill
|
|||||||
|
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
$arr = [
|
$arr = [
|
||||||
'Mapper TxOdds to Bet365',
|
'Mapper TXOdds to Bet365',
|
||||||
'TXdds ID : '.$event['txodds_id'],
|
'TXdds ID : '.$event['txodds_id'],
|
||||||
"Bet365 ID : $bet365_id",
|
"Bet365 ID : $bet365_id",
|
||||||
'Willhill ID : '.$event['willhill_id'],
|
'Willhill ID : '.$event['willhill_id'],
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class Odds
|
|||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
Notice::note('TxOdds MARKET Lastcall', 'p');
|
Notice::note('TXOdds MARKET Lastcall', 'p');
|
||||||
}
|
}
|
||||||
|
|
||||||
$market = '&ot='.Nuh::$options['txodds_market_id'];
|
$market = '&ot='.Nuh::$options['txodds_market_id'];
|
||||||
@@ -234,9 +234,10 @@ class Odds
|
|||||||
'competition_group_id' => (int) $row->group['cgid'],
|
'competition_group_id' => (int) $row->group['cgid'],
|
||||||
];
|
];
|
||||||
|
|
||||||
$res = DB::transaction(function () use ($event_id, $event) {
|
$res = DB::transaction(function () use ($row, $event) {
|
||||||
return Event::updateOrCreate(['id' => (int) $event_id, $event]);
|
return Event::updateOrCreate(['id' => (int) $row['id']], $event);
|
||||||
}, 5);
|
}, 5);
|
||||||
|
$event_id = $res->id;
|
||||||
|
|
||||||
$group = [
|
$group = [
|
||||||
'competition_group_id' => (string) $row->group['cgid'],
|
'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);
|
ElementGroup::updateOrCreate(['element_id' => (int) $row->ateam['id'], 'group_id' => (int) $row->group['id']], $element_group);
|
||||||
|
|
||||||
if (Event::where('id', $event_id)->exists()) {
|
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) {
|
foreach ($row->bookmaker as $book) {
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user