proxy wip

This commit is contained in:
salam committed 2025-12-18 20:29:34 +01:00
1 parent 5c9745b1da
commit d16a8a3a1f
9 files changed
+144 -42

No files matched your search

+6 -13
View File
@@ -2,28 +2,21 @@
namespace App\Console\Commands\Grapper;
use App\Console\Commands\Grapper\Magloo\Fixtures;
use App\Console\Commands\Grapper\Magloo\Odds;
use App\Console\Commands\Nuh;
use App\Models\Sport;
use App\Utilities\Notice;
class Magloo
{
public static function switch()
{
$sportmap = Sport::map('magl');
dd($sportmap);
switch (Nuh::$options['sport_id']) {
case 1:
switch (Nuh::$options['name']) {
case 'Fixtures':
Fixtures::grap();
break;
case 3:
break;
case 4:
break;
case 5:
case 'Odds':
Odds::grap();
break;
default:
Notice::note('prosses name does not exist', 'r', 1);
@@ -0,0 +1,49 @@
<?php
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
{
public static function grap()
{
$debug = Nuh::$options['d'] ?? 0;
$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);
dd($_data);
}
}
@@ -0,0 +1,48 @@
<?php
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 Odds
{
public static function grap()
{
$debug = Nuh::$options['d'] ?? 0;
$test = Nuh::$options['t'] ?? 0;
$echo = Nuh::$options['e'] ?? 0;
switch (Nuh::$options['provider_id']) {
case 3:
// KENIA
if ($test) {
$base_url = 'https://int.external.api.algorez.com/api/sb/affiliates/30/en/1/prematch/sport';
} else {
$base_url = 'https://api.externalsvc.com/api/sb/affiliates/30/en/1/prematch/sport';
}
break;
case 4:
// NIGERIA
if ($test) {
$base_url = 'https://int.external.api.algorez.com/api/sb/affiliates/20/en/1/prematch/sport';
} else {
$base_url = 'https://api.externalsvc.com/api/sb/affiliates/20/en/1/prematch/sport';
}
break;
default:
Notice::note('prosses name does not exist', 'r', 1);
break;
}
$sportmap = Sport::map('magl');
$_data = Curl::load($url, 1);
dd($_data);
}
}
-6
View File
@@ -24,12 +24,6 @@ class TxOdds
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;