stuck with livewire

This commit is contained in:
salam committed 2026-01-11 09:09:16 +01:00
1 parent b21cdb507a
commit c0f2689ff6
30 files changed
+372 -64

No files matched your search

+18 -9
View File
@@ -2,6 +2,8 @@
namespace App\Console\Commands\Grapper\TxOdds;
use App\Console\Commands\Grapper\Helper\ActiveSpread;
use App\Console\Commands\Grapper\Helper\BookmakerOffer;
use App\Console\Commands\Grapper\TxOdds\Odds\_2Way;
use App\Console\Commands\Grapper\TxOdds\Odds\_2WayS1;
use App\Console\Commands\Grapper\TxOdds\Odds\_3Way;
@@ -16,7 +18,6 @@ use App\Console\Commands\Grapper\TxOdds\Odds\_Totals;
use App\Console\Commands\Grapper\TxOdds\Odds\_TotalsHt;
use App\Console\Commands\Grapper\TxOdds\Odds\_TotalsQ1;
use App\Console\Commands\Grapper\TxOdds\Odds\_Tq;
use App\Console\Commands\Grapper\TxOdds\Odds\WorkCollector;
use App\Console\Commands\Nuh;
use App\Console\Commands\Xml;
use App\Models\CompetitionGroup;
@@ -37,6 +38,7 @@ class Odds
Notice::note('txodd odd sport: '.Nuh::$options['sport_id'], 'b');
}
BookmakerOffer::init();
/**
* Delete
*/
@@ -159,7 +161,7 @@ class Odds
$_calls = [];
if (Nuh::$options['id']) {
if ($debug) {
Notice::note('BY ID', 'p');
Notice::note("BY ID \nsport_id: ".Nuh::$options['sport_id'], 'p');
}
/**
* by SINGLE ID
@@ -167,7 +169,7 @@ class Odds
$_calls[] = $url."&ot=$markets&peid=".Nuh::$options['id'];
} elseif (Nuh::$options['a']) {
if ($debug) {
Notice::note('ALL', 'p');
Notice::note("ALL \nsport_id: ".Nuh::$options['sport_id'], 'p');
}
/**
* ALL by ID
@@ -178,7 +180,7 @@ class Odds
}
} elseif (Nuh::$options['g']) {
if ($debug) {
Notice::note('PER GROUP_ID', 'p');
Notice::note("GROUP_ID \nsport_id: ".Nuh::$options['sport_id'], 'p');
}
/**
* PER GROUP_ID
@@ -190,19 +192,22 @@ class Odds
}
} elseif (Nuh::$options['t']) {
if ($debug) {
Notice::note('TODAY', 'p');
Notice::note("TODAY \nsport_id: ".Nuh::$options['sport_id'], 'p');
}
/**
* TODAY
*/
$res = Event::where('sport_id', Nuh::$options['sport_id'])->where('starttime', '>', Carbon::now()->toDateTimeString())->where('starttime', '<', Carbon::now()->addDays(1)->toDateTimeString())->pluck('id');
$from = Carbon::now()->toDateTimeString();
$to = Carbon::now()->addDays(1)->toDateTimeString();
$res = Event::where('sport_id', Nuh::$options['sport_id'])->where('starttime', '>=', $from)->where('starttime', '<', $to)->pluck('id');
foreach ($res as $id) {
$_calls[] = $url.'&spid='.Nuh::$options['sport_id']."&ot=$markets&peid=".$id;
}
} elseif (Nuh::$options['w']) {
if ($debug) {
Notice::note('ONE WEEK FROM NOW', 'p');
Notice::note("WEEK \nsport_id: ".Nuh::$options['sport_id'], 'p');
}
/**
* ONE WEEK
@@ -213,7 +218,7 @@ class Odds
}
} else {
if ($debug) {
Notice::note('WITH LASTCALL Parameter', 'p');
Notice::note("LASTCALL \nsport_id: ".Nuh::$options['sport_id'], 'p');
}
/**
* WITH LASTCALL Parameter
@@ -293,6 +298,8 @@ class Odds
$odds['provider_id'] = Nuh::$options['provider_id'];
$odds['nuh_check'] = 0;
BookmakerOffer::collect($book['bid'], $event['sport_id']);
foreach ($book->offer as $offer) {
$bettypeid = 0;
@@ -368,10 +375,12 @@ class Odds
}
}
}
WorkCollector::run();
ActiveSpread::set();
}
}
BookmakerOffer::finalize();
if ($debug) {
Notice::note('DONE - EVENTS: '.$counter, 'g');
}