grapper betsapi

This commit is contained in:
salam committed 2025-12-22 08:15:59 +01:00
1 parent 406fd26864
commit a3c9f16550
127 files changed
+158128 -650

No files matched your search

+8 -6
View File
@@ -6,7 +6,7 @@ use App\Utilities\Notice;
class Curl
{
public static $file;
public static $testfiles = '/Console/Commands/TestFiles/';
public static function load($url)
{
@@ -21,9 +21,9 @@ class Curl
if ($read) {
if ($debug) {
Notice::note('READ LOCAL', 'r');
Notice::note('data read localy', 'g');
}
$filename = app_path().'/Console/TestFiles/'.strtolower(str_replace(' ', '_', Nuh::$options['name'])).'.json';
$filename = app_path().self::$testfiles.strtolower(str_replace(' ', '_', Nuh::$options['name'])).'.json';
$file = file_get_contents($filename);
@@ -64,9 +64,11 @@ class Curl
}
if ($save) {
Notice::note('SAVED LOCAL', 'b');
self::$file = app_path().'/Console/TestFiles/'.strtolower(str_replace(' ', '_', Nuh::$options['name'])).'.json';
file_put_contents(self::$file, $data);
$filename = app_path().self::$testfiles.strtolower(str_replace(' ', '_', Nuh::$options['name'])).'.json';
file_put_contents($filename, $data);
Notice::note('file saved localy', 'g');
}
return json_decode($data, true);