comparatore bettypes wip

This commit is contained in:
salam committed 2025-12-17 16:18:29 +01:00
1 parent 26bf5359bc
commit 28032520b4
28 files changed
+446 -149

No files matched your search

@@ -15,7 +15,7 @@ class _Dc
$debug = NuhBash::$options['d'] ?? 0;
if ($debug) {
Notice::note('Double Chance '.$odds['bookmaker_id'], 'b');
Notice::note('Double Chance '.NuhBash::$bookmaker_id, 'b');
}
$update_array = [];
@@ -27,12 +27,17 @@ class _Dc
$update_array['margin'] = (float) Margin::calculate($update_array, 1);
$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'];
OddsDc::updateOrCreate($odds, $update_array);
OddsDc::updateOrCreate([
'event_id' => NuhBash::$_event->id,
'bookmaker_id' => NuhBash::$bookmaker_id,
], $update_array);
}
}