wip
This commit is contained in:
1 parent
d16a8a3a1f
commit
ba6c2263e3
11 files changed
+230
-50
No files matched your search
@@ -11,6 +11,9 @@ class Magloo
|
||||
{
|
||||
public static function switch()
|
||||
{
|
||||
|
||||
Nuh::$options['proxy'] = 'https://proxydb1.nuhodds.com/MaglooProxy.php';
|
||||
|
||||
switch (Nuh::$options['name']) {
|
||||
case 'Fixtures':
|
||||
Fixtures::grap();
|
||||
|
||||
@@ -5,7 +5,6 @@ namespace App\Console\Commands\Grapper\Magloo;
|
||||
use App\Console\Commands\Curl;
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Models\Sport;
|
||||
use App\Utilities\Notice;
|
||||
|
||||
class Fixtures
|
||||
{
|
||||
@@ -15,35 +14,12 @@ class Fixtures
|
||||
$test = Nuh::$options['t'] ?? 0;
|
||||
$echo = Nuh::$options['e'] ?? 0;
|
||||
|
||||
switch (Nuh::$options['provider_id']) {
|
||||
case 3:
|
||||
// KENIA
|
||||
if ($test) {
|
||||
$url = 'https://int.external.api.algorez.com/api/sb/affiliates/30/en/1/prematch';
|
||||
} else {
|
||||
$url = 'https://api.externalsvc.com/api/sb/affiliates/30/en/1/prematch';
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
// NIGERIA
|
||||
if ($test) {
|
||||
$base_url = 'https://int.external.api.algorez.com/api/sb/affiliates/20/en/1/prematch';
|
||||
} else {
|
||||
$url = 'https://api.externalsvc.com/api/sb/affiliates/20/en/1/prematch';
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Notice::note('prosses name does not exist', 'r', 1);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
$sportmap = Sport::map('magl');
|
||||
|
||||
$url = $base_url.'/sport';
|
||||
$url = 'https://www.github.com';
|
||||
$_data = Curl::load($url, 1);
|
||||
$url = Url::sports();
|
||||
|
||||
dd($_data);
|
||||
$file = Curl::load($url);
|
||||
|
||||
dd($file);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\Grapper\Magloo;
|
||||
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Utilities\Notice;
|
||||
|
||||
class Url
|
||||
{
|
||||
public static function sports()
|
||||
{
|
||||
$test = Nuh::$options['t'] ?? 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/sport';
|
||||
} else {
|
||||
return 'https://api.externalsvc.com/api/sb/affiliates/30/en/1/prematch/sport';
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
// NIGERIA
|
||||
if ($test) {
|
||||
return 'https://int.external.api.algorez.com/api/sb/affiliates/20/en/1/prematch/sport';
|
||||
} else {
|
||||
return 'https://api.externalsvc.com/api/sb/affiliates/20/en/1/prematch/sport';
|
||||
}
|
||||
break;
|
||||
default:
|
||||
Notice::note('process name does not exist', 'r', 1);
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user