add block_update when reload txodds
This commit is contained in:
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\OddsDnb;
|
||||
use App\Utilities\Margin;
|
||||
|
||||
@@ -9,6 +10,8 @@ class _Dnb
|
||||
{
|
||||
public static function grap($odds, $offer)
|
||||
{
|
||||
$block_create = Nuh::$options['b'] ?? 0;
|
||||
|
||||
foreach ($offer as $value) {
|
||||
$odds['dnb1'] = (float) $value->o1;
|
||||
$odds['dnb2'] = (float) $value->o3;
|
||||
@@ -19,7 +22,7 @@ class _Dnb
|
||||
|
||||
if (! $res) {
|
||||
OddsDnb::create($odds);
|
||||
} else {
|
||||
} elseif (! $block_create) {
|
||||
$res->dnb1 = $odds['dnb1'];
|
||||
$res->dnb2 = $odds['dnb2'];
|
||||
$res->flags = 1;
|
||||
|
||||
Reference in new issue
Block a user