38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace App\Console\Commands\Grapper\Magloo\Odds;
|
|
|
|
use App\Console\Commands\Nuh;
|
|
use App\Utilities\Notice;
|
|
|
|
class BaseUrl
|
|
{
|
|
public static function get()
|
|
{
|
|
$test = 0;
|
|
|
|
switch (Nuh::$options['provider_id']) {
|
|
case 3:
|
|
// KENIA
|
|
if ($test) {
|
|
return 'https://int.external.api.algorez.com/api/sb/affiliates/30/en/1/prematch';
|
|
} else {
|
|
return 'https://api.externalsvc.com/api/sb/affiliates/30/en/1/prematch';
|
|
}
|
|
break;
|
|
case 4:
|
|
// NIGERIA
|
|
if ($test) {
|
|
return 'https://int.external.api.algorez.com/api/sb/affiliates/20/en/1/prematch';
|
|
} else {
|
|
return 'https://api.externalsvc.com/api/sb/affiliates/20/en/1/prematch';
|
|
}
|
|
break;
|
|
default:
|
|
Notice::note('process name does not exist', 'r', 1);
|
|
break;
|
|
|
|
}
|
|
}
|
|
}
|