fixtures new wip
This commit is contained in:
1 parent
a1057d55a7
commit
69619802ce
27 files changed
+156
-187
No files matched your search
@@ -3,10 +3,8 @@
|
||||
namespace App\Console\Commands\Grapper\Betsapi;
|
||||
|
||||
use App\Console\Commands\Curl;
|
||||
use App\Console\Commands\Grapper\FindFixture;
|
||||
use App\Console\Commands\Grapper\Fixtures\FindFixture;
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Mapper\LoadElements;
|
||||
use App\Mapper\LoadGroups;
|
||||
use App\Models\Country;
|
||||
use App\Models\Mapper;
|
||||
use App\Models\Sport;
|
||||
@@ -15,16 +13,14 @@ use Illuminate\Support\Carbon;
|
||||
|
||||
class Fixtures
|
||||
{
|
||||
public static $elements = [];
|
||||
|
||||
public static $groups = [];
|
||||
|
||||
public static function grap()
|
||||
{
|
||||
$debug = Nuh::$options['d'] ?? 0;
|
||||
|
||||
$today = Nuh::$options['t'] ?? 0;
|
||||
|
||||
FindFixture::start();
|
||||
|
||||
/**
|
||||
* Delete Started
|
||||
*/
|
||||
@@ -34,10 +30,6 @@ class Fixtures
|
||||
Notice::note("Deleted: $info");
|
||||
}
|
||||
|
||||
self::$elements = LoadElements::load(Nuh::$options['provider_id']);
|
||||
|
||||
self::$groups = LoadGroups::load(Nuh::$options['provider_id']);
|
||||
|
||||
$country_map = Country::pluck('id', 'iso2');
|
||||
|
||||
$sportmap = Sport::map('bapi', 0, [1]);
|
||||
@@ -100,7 +92,7 @@ class Fixtures
|
||||
'group_cc' => strtoupper($row['league']['cc']) ?? '',
|
||||
];
|
||||
|
||||
FindFixture::search($event, self::$groups[$sport_id], self::$elements[$sport_id]);
|
||||
FindFixture::find($event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user