42 lines
1006 B
PHP
42 lines
1006 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands\Grapper;
|
|
|
|
use App\Console\Commands\Grapper\TxOdds\Fixtures;
|
|
use App\Console\Commands\Grapper\TxOdds\Odds;
|
|
use App\Console\Commands\NuhBash;
|
|
use App\Utilities\Notice;
|
|
|
|
class TxSwitch
|
|
{
|
|
/**
|
|
* https://docs.guzzlephp.org/en/latest/
|
|
*/
|
|
public static function switch()
|
|
{
|
|
if (NuhBash::$options['sport_id'] == 1) {
|
|
NuhBash::$AUTHTOKEN = 'ident=betaid1&passwd=Dy59vpRC';
|
|
} else {
|
|
NuhBash::$AUTHTOKEN = 'ident=betaid2&passwd=Dy59vpRC';
|
|
}
|
|
|
|
switch (NuhBash::$options['name']) {
|
|
case 'Fixtures':
|
|
Fixtures::grap();
|
|
break;
|
|
case 'Odds':
|
|
Odds::grap();
|
|
break;
|
|
case 3:
|
|
break;
|
|
case 4:
|
|
break;
|
|
case 5:
|
|
break;
|
|
default:
|
|
Notice::note('prosses name does not exist', 'r', 1);
|
|
break;
|
|
}
|
|
}
|
|
}
|