This commit is contained in:
salam committed 2025-12-18 19:22:36 +01:00
1 parent 60379bcab8
commit 5c9745b1da
19 files changed
+167 -105

No files matched your search

@@ -2,7 +2,7 @@
namespace App\Console\Commands\Grapper\TxOdds\Odds;
use App\Console\Commands\NuhBash;
use App\Console\Commands\Nuh;
use App\Models\Odds3way;
use App\Utilities\Margin;
use App\Utilities\Notice;
@@ -12,10 +12,10 @@ class _3Way
{
public static function grap($odds, $offer)
{
$debug = NuhBash::$options['d'] ?? 0;
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note('1X2 '.NuhBash::$bookmaker_id, 'b');
Notice::note('1X2 '.Nuh::$bookmaker_id, 'b');
}
$update_array = [];
@@ -27,7 +27,7 @@ class _3Way
$bkm_starttime = (string) $value['starting_time'];
}
NuhBash::$_event_bookmaker[] =
Nuh::$_event_bookmaker[] =
[
'bmoid' => $odds['bmoid'],
'starttime' => $bkm_starttime,
@@ -37,14 +37,14 @@ class _3Way
$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['provider_id'] = Nuh::$options['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([
'event_id' => NuhBash::$_event->id,
'bookmaker_id' => NuhBash::$bookmaker_id,
'event_id' => Nuh::$_event->id,
'bookmaker_id' => Nuh::$bookmaker_id,
], $update_array);
}
}