39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Console\Commands\Grapper\Logifuture;
|
|
|
|
use App\Console\Commands\Nuh;
|
|
use App\Console\Commands\Grapper\Logifuture\Auth;
|
|
|
|
class BaseUrl
|
|
{
|
|
public static function get()
|
|
{
|
|
$test = Nuh::$options['t'] ?? 0;
|
|
|
|
switch (Nuh::$options['provider_id']) {
|
|
case 5:
|
|
if ($test) {
|
|
Auth::$password = 'nuhodds';
|
|
$base_url = 'https://stg-external-api.bet9ja.com/external';
|
|
} else {
|
|
Auth::$password = 'uSwIqs!Y3eHrNbyH';
|
|
$base_url = 'https://external-api.bet9ja.com/external';
|
|
}
|
|
|
|
break;
|
|
case 6:
|
|
if ($test) {
|
|
Auth::$password = 'nuhodds';
|
|
$base_url = 'https://stg-external-api.yajuego.co/external';
|
|
} else {
|
|
$base_url = 'https://external-api.yajuego.co/external';
|
|
Auth::$password = 'uSwIqs!Y3eHrNbyH';
|
|
}
|
|
break;
|
|
}
|
|
|
|
return $base_url;
|
|
}
|
|
}
|