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