wip
This commit is contained in:
1 parent
60379bcab8
commit
5c9745b1da
19 files changed
+167
-105
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Console\Commands\Grapper\TxOdds;
|
||||
|
||||
use App\Console\Commands\NuhBash;
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Console\Commands\Xml;
|
||||
use App\Models\CompetitionGroup;
|
||||
use App\Models\Element;
|
||||
@@ -15,9 +15,9 @@ class Fixtures
|
||||
{
|
||||
public static function grap()
|
||||
{
|
||||
$debug = NuhBash::$options['d'] ?? 0;
|
||||
$print = NuhBash::$options['p'] ?? 0;
|
||||
$break = NuhBash::$options['b'] ?? 0;
|
||||
$debug = Nuh::$options['d'] ?? 0;
|
||||
$echo = Nuh::$options['e'] ?? 0;
|
||||
$break = Nuh::$options['b'] ?? 0;
|
||||
|
||||
$count = 0;
|
||||
$total = 0;
|
||||
@@ -40,11 +40,11 @@ class Fixtures
|
||||
$from = $now->addDays($i)->toDateString();
|
||||
$to = $now->addDays($i + 1)->toDateString();
|
||||
|
||||
$url = 'https://xml2.txodds.com/feed/result/xml.php?'.NuhBash::$AUTHTOKEN."&date=$from,$to";
|
||||
$url = 'https://xml2.txodds.com/feed/result/xml.php?'.Nuh::$AUTHTOKEN."&date=$from,$to";
|
||||
|
||||
$data = Xml::load($url);
|
||||
|
||||
if ($print) {
|
||||
if ($echo) {
|
||||
dd($data);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user