wip
This commit is contained in:
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\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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user