wip
This commit is contained in:
1 parent
78917241ad
commit
f098ba9b00
18 files changed
+499
-473
No files matched your search
@@ -2,19 +2,19 @@
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Utilities\Notice;
|
||||
use App\Models\Supervisor;
|
||||
use Illuminate\Console\Command;
|
||||
use App\Utilities\Supervisorctl;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use App\Console\Commands\DbMapper\AutoMapper;
|
||||
use App\Console\Commands\Grapper\Betica;
|
||||
use App\Console\Commands\Grapper\Magloo;
|
||||
use App\Console\Commands\Grapper\TxOdds;
|
||||
use App\Console\Commands\Grapper\Betsapi;
|
||||
use App\Console\Commands\Grapper\Goldbet;
|
||||
use App\Console\Commands\Services\Services;
|
||||
use App\Console\Commands\Grapper\Logifuture;
|
||||
use App\Console\Commands\DbMapper\AutoMapper;
|
||||
use App\Console\Commands\Grapper\Magloo;
|
||||
use App\Console\Commands\Grapper\TxOdds;
|
||||
use App\Console\Commands\Services\Services;
|
||||
use App\Models\Supervisor;
|
||||
use App\Utilities\Notice;
|
||||
use App\Utilities\Supervisorctl;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class Nuh extends Command
|
||||
{
|
||||
@@ -22,7 +22,7 @@ class Nuh extends Command
|
||||
|
||||
public static $id = 0;
|
||||
|
||||
protected $signature = 'nuh {process=help} {--folder=} {--id=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} {--id=0} {--gid=} {--p} {--d} {--x} {--t} {--y} {--m} {--l} {--w} {--a} {--r} {--s} {--g} {--t} {--q} {--f} {--b} {--e} {--z}';
|
||||
|
||||
public function handle()
|
||||
{
|
||||
@@ -35,45 +35,45 @@ class Nuh extends Command
|
||||
|
||||
if ($this->argument('process') == 'help') {
|
||||
$txt = PHP_EOL;
|
||||
if (!$show_supervisors) {
|
||||
$txt .= 'Parameters' . PHP_EOL;
|
||||
$txt .= '-----------------------------------------------------------' . PHP_EOL;
|
||||
$txt .= 'process [id] (required)' . PHP_EOL;
|
||||
$txt .= '--id=matchid (optional) calling spezific id' . PHP_EOL;
|
||||
$txt .= '--fun=name (optional) [bkms, markets]' . PHP_EOL;
|
||||
$txt .= '--gid=groupid (optional) [bkms, groupid]' . PHP_EOL;
|
||||
$txt .= '-----------------------------------------------------------' . PHP_EOL . PHP_EOL;
|
||||
$txt .= 'Options' . PHP_EOL;
|
||||
$txt .= '-----------------------------------------------------------' . PHP_EOL;
|
||||
$txt .= '--a all by id' . PHP_EOL;
|
||||
$txt .= '--b block update (reload all for txodds)' . PHP_EOL;
|
||||
$txt .= '--d debug' . PHP_EOL;
|
||||
$txt .= '--e echo client data' . PHP_EOL;
|
||||
$txt .= '--f force (what ever in script)' . PHP_EOL;
|
||||
$txt .= '--g by minor groups (tx)' . PHP_EOL;
|
||||
$txt .= '--t load today' . PHP_EOL;
|
||||
$txt .= '--m mail it' . PHP_EOL;
|
||||
$txt .= '--p use proxy' . PHP_EOL;
|
||||
$txt .= '--q print all queries' . PHP_EOL;
|
||||
$txt .= '--r read data from file ' . PHP_EOL;
|
||||
$txt .= '--s store data to file ' . PHP_EOL;
|
||||
$txt .= '--t load today' . PHP_EOL;
|
||||
$txt .= '--w laod this week (tx)' . PHP_EOL;
|
||||
$txt .= '--x generate supervisors' . PHP_EOL;
|
||||
$txt .= '--y load yesterday' . PHP_EOL;
|
||||
$txt .= '--z show supervisors tasks' . PHP_EOL;
|
||||
if (! $show_supervisors) {
|
||||
$txt .= 'Parameters'.PHP_EOL;
|
||||
$txt .= '-----------------------------------------------------------'.PHP_EOL;
|
||||
$txt .= 'process [id] (required)'.PHP_EOL;
|
||||
$txt .= '--id=matchid (optional) calling spezific id'.PHP_EOL;
|
||||
$txt .= '--fun=name (optional) [bkms, markets]'.PHP_EOL;
|
||||
$txt .= '--gid=groupid (optional) [bkms, groupid]'.PHP_EOL;
|
||||
$txt .= '-----------------------------------------------------------'.PHP_EOL.PHP_EOL;
|
||||
$txt .= 'Options'.PHP_EOL;
|
||||
$txt .= '-----------------------------------------------------------'.PHP_EOL;
|
||||
$txt .= '--a all by id'.PHP_EOL;
|
||||
$txt .= '--b block update (reload all for txodds)'.PHP_EOL;
|
||||
$txt .= '--d debug'.PHP_EOL;
|
||||
$txt .= '--e echo client data'.PHP_EOL;
|
||||
$txt .= '--f force (what ever in script)'.PHP_EOL;
|
||||
$txt .= '--g by minor groups (tx)'.PHP_EOL;
|
||||
$txt .= '--t load today'.PHP_EOL;
|
||||
$txt .= '--m mail it'.PHP_EOL;
|
||||
$txt .= '--p use proxy'.PHP_EOL;
|
||||
$txt .= '--q print all queries'.PHP_EOL;
|
||||
$txt .= '--r read data from file '.PHP_EOL;
|
||||
$txt .= '--s store data to file '.PHP_EOL;
|
||||
$txt .= '--t load today'.PHP_EOL;
|
||||
$txt .= '--w laod this week (tx)'.PHP_EOL;
|
||||
$txt .= '--x generate supervisors'.PHP_EOL;
|
||||
$txt .= '--y load yesterday'.PHP_EOL;
|
||||
$txt .= '--z show supervisors tasks'.PHP_EOL;
|
||||
}
|
||||
|
||||
$txt .= '-----------------------------------------------------------' . PHP_EOL . PHP_EOL;
|
||||
$txt .= 'Supervisors (--z)' . PHP_EOL;
|
||||
$txt .= '-----------------------------------------------------------'.PHP_EOL.PHP_EOL;
|
||||
$txt .= 'Supervisors (--z)'.PHP_EOL;
|
||||
if ($show_supervisors) {
|
||||
$txt .= '-----------------------------------------------------------' . PHP_EOL;
|
||||
$txt .= '-----------------------------------------------------------'.PHP_EOL;
|
||||
$tmp = Supervisor::orderBy('provider_id')->get();
|
||||
foreach ($tmp as $value) {
|
||||
if ($value->sport_id) {
|
||||
$txt .= sprintf('% 3d', $value->id) . ' ' . $value->provider->name . ' - ' . $value->sport->name . ' ' . $value->name . PHP_EOL;
|
||||
$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;
|
||||
$txt .= sprintf('% 3d', $value->id).' '.$value->provider->name.' - All '.$value->name.PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user