set base_url in provider table

This commit is contained in:
salam committed 2026-01-16 11:05:12 +01:00
1 parent 5895f90b5b
commit f68fdc1dec
10 files changed
+77 -111

No files matched your search

@@ -4,8 +4,8 @@ namespace App\Console\Commands\Grapper\Magloo;
use App\Console\Commands\Curl;
use App\Console\Commands\Grapper\Fixtures\FindFixture;
use App\Console\Commands\Grapper\Magloo\Odds\BaseUrl;
use App\Console\Commands\Nuh;
use App\Models\EventBookmaker;
use App\Models\Sport;
use App\Utilities\Notice;
use Illuminate\Support\Carbon;
@@ -29,15 +29,13 @@ class Fixtures
}
if ($debug) {
Notice::note(Nuh::$options['provider']['name'].' '.Nuh::$options['name'], 'g');
Notice::note(Nuh::$options['provider'].' '.Nuh::$options['name'], 'g');
}
$base_url = BaseUrl::get();
/**
* Tornaments
*/
$url = $base_url.'/sport';
$url = Nuh::$options['base_url'].'/en/1/prematch/sport';
$data = Curl::load($url);
@@ -72,7 +70,7 @@ class Fixtures
$sport_id = $liga['sport_id'];
$url = $base_url.'/tournament/'.$liga['group_id'].'/event';
$url = Nuh::$options['base_url'].'/en/1/prematch/tournament/'.$liga['group_id'].'/event';
$data = Curl::load($url);
@@ -98,7 +96,7 @@ class Fixtures
FindFixture::find($event);
if ($event['id']) {
if (isset($event['id'])) {
$event_id_collector[] = $event['id'];