fix supervisor grapper vaiables

This commit is contained in:
salam committed 2026-01-17 08:10:13 +01:00
1 parent 93febce6fb
commit ae13d0b1f9
8 files changed
+97 -89

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ class Betsapi
{
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note(Nuh::$options['provider']['name'].' '.Nuh::$options['name'], 'b');
Notice::note(Nuh::$options['provider'].' '.Nuh::$options['name'], 'b');
}
switch (Nuh::$options['name']) {
@@ -21,6 +21,10 @@ class Fixtures
$today = Nuh::$options['t'] ?? 0;
$week = Nuh::$options['w'] ?? 0;
if ($debug) {
Notice::note('TXODDS FIXTURES', 'b');
}
$count = 0;
$total_soccer = 0;
$total_others = 0;
@@ -38,15 +42,13 @@ class Fixtures
}
$sports = Sport::where('is_active', 1)->pluck('id')->toArray();
/**
* Grap
*/
$AUTHTOKEN = [
'SOCCER' => 'ident=betaid1&passwd=Dy59vpRC',
'OTHER' => 'ident=betaid2&passwd=Dy59vpRC',
];
$kontos = ['soccer' => config('env.txodds_betaid1'), 'other' => config('env.txodds_betaid2')];
foreach ($AUTHTOKEN as $konto => $authentication) {
foreach ($kontos as $authentication) {
// code...
if ($today) {
+3 -5
View File
@@ -37,7 +37,7 @@ class Odds
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note('txodd odd sport: '.Nuh::$options['sport_id'], 'b');
Notice::note('TXODD ODD sport: '.Nuh::$options['sport_id'], 'b');
}
/**
@@ -66,13 +66,11 @@ class Odds
* URL
*************************************************/
if (Nuh::$options['sport_id'] == 1) {
$AUTHTOKEN = 'ident=betaid1&passwd=Dy59vpRC';
$url = 'https://xml2.txodds.com/feed/odds/xml.php?'.config('env.txodds_betaid1').'&all_odds=2';
} else {
$AUTHTOKEN = 'ident=betaid2&passwd=Dy59vpRC';
$url = 'https://xml2.txodds.com/feed/odds/xml.php?'.config('env.txodds_betaid2').'&all_odds=2';
}
$url = 'https://xml2.txodds.com/feed/odds/xml.php?'.$AUTHTOKEN.'&all_odds=2';
$_calls = [];
$sport = '&spid='.Nuh::$options['sport_id'];