add block_update when reload txodds

This commit is contained in:
salam committed 2026-02-03 19:38:18 +01:00
1 parent dd70b3ab39
commit 66f77a903e
15 files changed
+58 -15

No files matched your search

@@ -3,6 +3,7 @@
namespace App\Console\Commands\Grapper\TxOdds\Odds;
use App\Console\Commands\Grapper\TxOdds\Odds\Tools\ActiveSpread;
use App\Console\Commands\Nuh;
use App\Models\OddsPointHt;
use App\Utilities\Margin;
@@ -10,6 +11,8 @@ class _PointsHt
{
public static function grap($odds, $offer)
{
$block_create = Nuh::$options['b'] ?? 0;
foreach ($offer as $value) {
$odds['home'] = (float) $value->o1;
$odds['away'] = (float) $value->o2;
@@ -31,7 +34,7 @@ class _PointsHt
if (! $res) {
OddsPointHt::create($odds);
} else {
} elseif (! $block_create) {
$res->home = $odds['home'];
$res->away = $odds['away'];
$res->flags = 1;