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);
}
}
@@ -2,7 +2,7 @@
namespace App\Console\Commands\Grapper\TxOdds\Odds;
use App\Console\Commands\NuhBash;
use App\Console\Commands\Nuh;
use App\Models\OddsDc;
use App\Utilities\Margin;
use App\Utilities\Notice;
@@ -12,10 +12,10 @@ class _Dc
{
public static function grap($odds, $offer)
{
$debug = NuhBash::$options['d'] ?? 0;
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note('Double Chance '.NuhBash::$bookmaker_id, 'b');
Notice::note('Double Chance '.Nuh::$bookmaker_id, 'b');
}
$update_array = [];
@@ -30,14 +30,14 @@ class _Dc
$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'];
OddsDc::updateOrCreate([
'event_id' => NuhBash::$_event->id,
'bookmaker_id' => NuhBash::$bookmaker_id,
'event_id' => Nuh::$_event->id,
'bookmaker_id' => Nuh::$bookmaker_id,
], $update_array);
}
}
@@ -2,7 +2,7 @@
namespace App\Console\Commands\Grapper\TxOdds\Odds;
use App\Console\Commands\NuhBash;
use App\Console\Commands\Nuh;
use App\Models\OddsDnb;
use App\Utilities\Margin;
use App\Utilities\Notice;
@@ -12,10 +12,10 @@ class _Dnb
{
public static function grap($odds, $offer)
{
$debug = NuhBash::$options['d'] ?? 0;
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note('Draw No Bet '.NuhBash::$bookmaker_id, 'b');
Notice::note('Draw No Bet '.Nuh::$bookmaker_id, 'b');
}
$update_array = [];
@@ -29,14 +29,14 @@ class _Dnb
$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'];
OddsDnb::updateOrCreate([
'event_id' => NuhBash::$_event->id,
'bookmaker_id' => NuhBash::$bookmaker_id,
'event_id' => Nuh::$_event->id,
'bookmaker_id' => Nuh::$bookmaker_id,
], $update_array);
}
}
@@ -2,7 +2,7 @@
namespace App\Console\Commands\Grapper\TxOdds\Odds;
use App\Console\Commands\NuhBash;
use App\Console\Commands\Nuh;
use App\Models\OddsGgng;
use App\Utilities\Margin;
use App\Utilities\Notice;
@@ -12,10 +12,10 @@ class _Ggng
{
public static function grap($odds, $offer)
{
$debug = NuhBash::$options['d'] ?? 0;
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note('Goal No Goal '.NuhBash::$bookmaker_id, 'b');
Notice::note('Goal No Goal '.Nuh::$bookmaker_id, 'b');
}
$update_array = [];
@@ -29,14 +29,14 @@ class _Ggng
$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'];
OddsGgng::updateOrCreate([
'event_id' => NuhBash::$_event->id,
'bookmaker_id' => NuhBash::$bookmaker_id,
'event_id' => Nuh::$_event->id,
'bookmaker_id' => Nuh::$bookmaker_id,
], $update_array);
}
}
@@ -2,7 +2,7 @@
namespace App\Console\Commands\Grapper\TxOdds\Odds;
use App\Console\Commands\NuhBash;
use App\Console\Commands\Nuh;
use App\Models\OddsTotal;
use App\Utilities\Margin;
use App\Utilities\Notice;
@@ -12,10 +12,10 @@ class _Totals
{
public static function grap($odds, $offer)
{
$debug = NuhBash::$options['d'] ?? 0;
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note('Totals '.NuhBash::$bookmaker_id, 'b');
Notice::note('Totals '.Nuh::$bookmaker_id, 'b');
}
$update_array = [];
@@ -38,14 +38,14 @@ class _Totals
$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'];
OddsTotal::updateOrCreate([
'event_id' => NuhBash::$_event->id,
'bookmaker_id' => NuhBash::$bookmaker_id,
'event_id' => Nuh::$_event->id,
'bookmaker_id' => Nuh::$bookmaker_id,
], $update_array);
}
}
@@ -2,7 +2,7 @@
namespace App\Console\Commands\Grapper\TxOdds\Odds;
use App\Console\Commands\NuhBash;
use App\Console\Commands\Nuh;
use App\Models\OddsQualify;
use App\Utilities\Margin;
use App\Utilities\Notice;
@@ -12,10 +12,10 @@ class _Tq
{
public static function grap($odds, $offer)
{
$debug = NuhBash::$options['d'] ?? 0;
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note('To Qualify '.NuhBash::$bookmaker_id, 'b');
Notice::note('To Qualify '.Nuh::$bookmaker_id, 'b');
}
$update_array = [];
@@ -29,14 +29,14 @@ class _Tq
$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'];
OddsQualify::updateOrCreate([
'event_id' => NuhBash::$_event->id,
'bookmaker_id' => NuhBash::$bookmaker_id,
'event_id' => Nuh::$_event->id,
'bookmaker_id' => Nuh::$bookmaker_id,
], $update_array);
}
}