This commit is contained in:
salam committed 2026-07-20 08:27:33 +02:00
1 parent 88205b7aa1
commit 46eb3767f9
8 files changed
+208 -122

No files matched your search

+13 -13
View File
@@ -23,7 +23,7 @@ class Nuh extends Command
public static $id = 0;
protected $signature = 'nuh {process=help} {--truncate} {--id=0} {--fun=} {--task=0} {--gid=} {--p} {--d} {--x} {--t} {--y} {--m} {--l} {--w} {--a} {--r} {--s} {--g} {--t} {--q} {--f} {--b} {--e} {--z}';
protected $signature = 'nuh {process=help} {--truncate} {--id=0} {--fun=} {--task=0} {--restart=0} {--gid=} {--p} {--d} {--x} {--t} {--y} {--m} {--l} {--w} {--a} {--r} {--s} {--g} {--t} {--q} {--f} {--b} {--e} {--z}';
public function handle()
{
@@ -31,12 +31,12 @@ class Nuh extends Command
self::$options['supervisor_id'] = $this->argument('process');
$queries = self::$options['q'] ?? 0;
$show_supervisors = self::$options['z'] ?? 0;
if ($this->argument('process') == 'help') {
$txt = PHP_EOL;
if(!$show_supervisors){
if (!$show_supervisors) {
$txt .= 'Parameters' . PHP_EOL;
$txt .= '-----------------------------------------------------------' . PHP_EOL;
$txt .= 'process [id] (required)' . PHP_EOL;
@@ -47,15 +47,15 @@ class Nuh extends Command
$txt .= '-----------------------------------------------------------' . PHP_EOL . PHP_EOL;
$txt .= 'Sofascore (67)' . PHP_EOL;
$txt .= '-----------------------------------------------------------' . PHP_EOL;
$txt .= '--fun=[1,2,3,4,5,6,7]'
.PHP_EOL.chr(9).'1) player/season'
.PHP_EOL.chr(9).'2) setting to local'
.PHP_EOL.chr(9).'3) create zip'
.PHP_EOL.chr(9).'4) mail folder'
.PHP_EOL.chr(9).'5) grap tornaments/day'
.PHP_EOL.chr(9).'6) run grapper'
.PHP_EOL.chr(9).'7) update task'
.PHP_EOL;
$txt .= '--fun=[1,2,3,4,5]'
. PHP_EOL . chr(9) . '1) player/season'
. PHP_EOL . chr(9) . '2) setting to local'
. PHP_EOL . chr(9) . '3) grapper'
. PHP_EOL . chr(9) . '4) create zip'
. PHP_EOL . chr(9) . '5) mail folder'
. PHP_EOL;
$txt .= '--task=[id from sofa_score_tasks table]';
$txt .= '--restart=[0|1] delete archive and flusch DB for taks, start new';
$txt .= '-----------------------------------------------------------' . PHP_EOL . PHP_EOL;
$txt .= 'Options' . PHP_EOL;
$txt .= '-----------------------------------------------------------' . PHP_EOL;
@@ -80,7 +80,7 @@ class Nuh extends Command
$txt .= '-----------------------------------------------------------' . PHP_EOL . PHP_EOL;
$txt .= 'Supervisors (--z)' . PHP_EOL;
if($show_supervisors){
if ($show_supervisors) {
$txt .= '-----------------------------------------------------------' . PHP_EOL;
$tmp = Supervisor::orderBy('provider_id')->get();
foreach ($tmp as $value) {