logifurture wip

This commit is contained in:
salam committed 2026-01-05 07:38:28 +01:00
1 parent 99b901009c
commit a96abae35a
15 files changed
+2143 -1518

No files matched your search

+13 -5
View File
@@ -3,6 +3,7 @@
namespace App\Console\Commands;
use App\Console\Commands\Grapper\Betsapi;
use App\Console\Commands\Grapper\Logifuture;
use App\Console\Commands\Grapper\Magloo;
use App\Console\Commands\Grapper\TxOdds;
use App\Models\Supervisor;
@@ -23,7 +24,7 @@ class Nuh extends Command
public static $BETSAPI_TOKEN = '36152-aeTRNnZxSPUwGe';
protected $signature = 'nuh {process=help} {eventid=0} {--d} {--f} {--a} {--w} {--p} {--e} {--s} {--r} {--b} {--q} {--t}';
protected $signature = 'nuh {process=help} {eventid=0} {--d} {--f} {--a} {--w} {--p} {--e} {--s} {--r} {--b} {--q} {--t} {--g}';
protected $description = 'Nuh';
@@ -45,7 +46,9 @@ class Nuh extends Command
$txt .= 'List of options'.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL;
$txt .= '--a reload all'.PHP_EOL;
$txt .= '--b break loop after one '.PHP_EOL;
$txt .= '--b load one day single '.PHP_EOL;
$txt .= '--w laod one week (tx)'.PHP_EOL;
$txt .= '--g by minor groups (tx)'.PHP_EOL;
$txt .= '--d debug'.PHP_EOL;
$txt .= '--e echo file'.PHP_EOL;
@@ -57,14 +60,17 @@ class Nuh extends Command
$txt .= '--s store data to file '.PHP_EOL;
$txt .= '--t test server url '.PHP_EOL;
$txt .= '--w reload one week (tx)'.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL.PHP_EOL;
$txt .= 'List of supervisors'.PHP_EOL;
$txt .= '----------------------------------------------'.PHP_EOL;
$tmp = Supervisor::all();
$tmp = Supervisor::orderBy('provider_id')->get();
foreach ($tmp as $value) {
$txt .= sprintf('% 3d', $value->id).' '.$value->provider->name.' - '.$value->type.' '.$value->name.PHP_EOL;
if ($value->sport_id) {
$txt .= sprintf('% 3d', $value->id).' '.$value->provider->name.' - '.$value->sport->name.' '.$value->name.PHP_EOL;
} else {
$txt .= sprintf('% 3d', $value->id).' '.$value->provider->name.' - All '.$value->name.PHP_EOL;
}
}
Notice::note($txt, 'b', 1);
}
@@ -96,9 +102,11 @@ class Nuh extends Command
break;
case 5:
// LOGIFUTUR NIGERA
Logifuture::switch();
break;
case 6:
// LOGIFUTUR COLOMBIA
Logifuture::switch();
break;
default:
Notice::note('Provider not defined', 'r', 1);