fix flags

This commit is contained in:
salam committed 2026-02-24 17:27:47 +01:00
1 parent 2cdc70f5a4
commit 7acb1375d4
11 files changed
+1035 -14

No files matched your search

+4
View File
@@ -2,6 +2,7 @@
namespace App\Console\Commands\Grapper;
use App\Console\Commands\Grapper\TxOdds\Countries;
use App\Console\Commands\Grapper\TxOdds\Fixtures;
use App\Console\Commands\Grapper\TxOdds\Odds;
use App\Console\Commands\Nuh;
@@ -14,6 +15,9 @@ class TxOdds
case 'Fixtures':
Fixtures::grap();
break;
case 'Countries':
Countries::grap();
break;
default:
Odds::grap();
break;
@@ -2,25 +2,20 @@
namespace App\Console\Commands\Grapper\TxOdds;
use App\Console\Commands\Curl;
use App\Console\Commands\Nuh;
use App\Console\Commands\Xml;
use App\Models\Country;
use App\Utilities\Notice;
class Countries
{
public static function call()
public static function grap()
{
$debug = Nuh::$options['d'] ?? 0;
$print = Nuh::$options['p'] ?? 0;
$url = 'https://xml2.txodds.com/feed/countries.php';
$data = Curl::load($url, $debug);
if ($print) {
Notice::note($data, '', 1);
}
$data = Xml::load($url);
$count = 0;
foreach ($data as $row) {