comparatore bettypes wip
This commit is contained in:
1 parent
26bf5359bc
commit
28032520b4
28 files changed
+446
-149
No files matched your search
@@ -12,11 +12,10 @@ class _3Way
|
||||
{
|
||||
public static function grap($odds, $offer)
|
||||
{
|
||||
|
||||
$debug = NuhBash::$options['d'] ?? 0;
|
||||
|
||||
if ($debug) {
|
||||
Notice::note('1X2 '.$odds['bookmaker_id'], 'b');
|
||||
Notice::note('1X2 '.NuhBash::$bookmaker_id, 'b');
|
||||
}
|
||||
|
||||
$update_array = [];
|
||||
@@ -35,12 +34,17 @@ class _3Way
|
||||
];
|
||||
|
||||
$update_array['bmoid'] = $odds['bmoid'];
|
||||
$update_array['sport_id'] = $odds['sport_id'];
|
||||
$update_array['offer_id'] = $odds['offer_id'];
|
||||
$update_array['flag'] = 1;
|
||||
$update_array['provider_id'] = $odds['provider_id'];
|
||||
$update_array['nuh_check'] = 0;
|
||||
$update_array['last_check_at'] = Carbon::now()->toDateTimeString();
|
||||
$update_array['source_updated_at'] = $odds['source_updated_at'];
|
||||
|
||||
Odds3way::updateOrCreate($odds, $update_array);
|
||||
Odds3way::updateOrCreate([
|
||||
'event_id' => NuhBash::$_event->id,
|
||||
'bookmaker_id' => NuhBash::$bookmaker_id,
|
||||
], $update_array);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user