Bet365Tennis
This commit is contained in:
1 parent
616588a679
commit
1f2b16ffdf
1 file changed
+11
-7
@@ -33,7 +33,9 @@ class Bet365Tennis
|
|||||||
|
|
||||||
FindGroup::run($mapper);
|
FindGroup::run($mapper);
|
||||||
|
|
||||||
print_r($mapper);
|
if ($debug) {
|
||||||
|
Notice::note($mapper, 'b');
|
||||||
|
}
|
||||||
|
|
||||||
if ($mapper['txodds_home_id'] && $mapper['txodds_away_id'] && $mapper['txodds_group_id']) {
|
if ($mapper['txodds_home_id'] && $mapper['txodds_away_id'] && $mapper['txodds_group_id']) {
|
||||||
|
|
||||||
@@ -45,7 +47,7 @@ class Bet365Tennis
|
|||||||
->where('home_id', $mapper['txodds_home_id'])
|
->where('home_id', $mapper['txodds_home_id'])
|
||||||
->where('away_id', $mapper['txodds_away_id'])
|
->where('away_id', $mapper['txodds_away_id'])
|
||||||
->where('competition_group_id', $mapper['txodds_group_id'])
|
->where('competition_group_id', $mapper['txodds_group_id'])
|
||||||
->first()->toArray();
|
->first();
|
||||||
|
|
||||||
if ($event) {
|
if ($event) {
|
||||||
StoreElement::store($mapper);
|
StoreElement::store($mapper);
|
||||||
@@ -63,12 +65,14 @@ class Bet365Tennis
|
|||||||
$arr['betsapi_id'] = $mapper['betsapi_id'];
|
$arr['betsapi_id'] = $mapper['betsapi_id'];
|
||||||
}
|
}
|
||||||
if ($arr) {
|
if ($arr) {
|
||||||
Event::where('id', $event['id'])->update($arr);
|
Event::where('id', $event->id)->update($arr);
|
||||||
}
|
|
||||||
dd($event);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($debug) {
|
||||||
|
Notice::note($event->toArray(), 'b');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user