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

@@ -2,6 +2,7 @@
namespace App\Console\Commands\Grapper\TxOdds\Odds;
use App\Console\Commands\Nuh;
use App\Models\OddsTq;
use App\Utilities\Margin;
@@ -9,6 +10,8 @@ class _Tq
{
public static function grap($odds, $offer)
{
$block_create = Nuh::$options['b'] ?? 0;
foreach ($offer as $value) {
$odds['htq'] = (float) $value->o1;
$odds['atq'] = (float) $value->o3;
@@ -19,7 +22,7 @@ class _Tq
if (! $res) {
OddsTq::create($odds);
} else {
} elseif (! $block_create) {
$res->htq = $odds['htq'];
$res->atq = $odds['atq'];
$res->flags = 1;