add groups and major groups direct from txodds for auto mapping names
This commit is contained in:
1 parent
ba83e1a12d
commit
859038cc8c
21 files changed
+299
-40
No files matched your search
@@ -4,8 +4,6 @@ namespace App\Console\Commands\DbMapper;
|
||||
|
||||
use App\Console\Commands\DbMapper\Helper\FindElement;
|
||||
use App\Console\Commands\DbMapper\Helper\FindGroup;
|
||||
use App\Console\Commands\DbMapper\Store\StoreElement;
|
||||
use App\Console\Commands\DbMapper\Store\StoreGroup;
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Models\Event;
|
||||
use App\Models\Mapper;
|
||||
@@ -15,17 +13,19 @@ use Carbon\Carbon;
|
||||
class LogifutureNigeriaAll
|
||||
{
|
||||
/**
|
||||
* Provider ID 2
|
||||
* Provider ID 5
|
||||
* LOGIFUTURE NIGERA
|
||||
*/
|
||||
public static function run()
|
||||
{
|
||||
|
||||
$debug = Nuh::$options['d'] ?? 0;
|
||||
|
||||
if ($debug) {
|
||||
Notice::note(Nuh::$options['name'].' '.Nuh::$options['sport'], 'g');
|
||||
Notice::note(Nuh::$options['name'], 'g');
|
||||
}
|
||||
|
||||
$mappers = Mapper::where('provider_id', 2)->where('sport_id', 5)->where('starttime', '>=', Carbon::now())->get()->toArray();
|
||||
$mappers = Mapper::where('provider_id', 5)->where('sport_id', 5)->where('starttime', '>=', Carbon::now())->get()->toArray();
|
||||
|
||||
foreach ($mappers as $mapper) {
|
||||
|
||||
@@ -50,9 +50,6 @@ class LogifutureNigeriaAll
|
||||
->first();
|
||||
|
||||
if ($event) {
|
||||
StoreElement::store($mapper);
|
||||
|
||||
StoreGroup::store($mapper);
|
||||
|
||||
$arr = [];
|
||||
if ($mapper['bet365_id']) {
|
||||
@@ -71,7 +68,7 @@ class LogifutureNigeriaAll
|
||||
}
|
||||
|
||||
if ($debug) {
|
||||
Notice::note($event->toArray(), 'g');
|
||||
Notice::note($event->toArray(), 'g', 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user