This commit is contained in:
salam committed 2026-07-27 16:53:00 +02:00
1 parent 5a6d3585e5
commit 6e14dbd1bc
11 files changed
+123 -67

No files matched your search

@@ -5,6 +5,7 @@ namespace App\Console\Commands\Grapper;
use App\Console\Commands\Grapper\Sofascore\Grapper;
use App\Console\Commands\Grapper\Sofascore\Helper\Strings;
use App\Console\Commands\Grapper\Sofascore\Helper\ZipFolder;
use App\Console\Commands\Grapper\Sofascore\MakeExcel;
use App\Console\Commands\Grapper\Sofascore\PlayerPerSeason;
use App\Console\Commands\Grapper\Sofascore\Rose;
use App\Console\Commands\Grapper\Sofascore\SendMail;
@@ -23,6 +24,8 @@ class Sofascore
public static string $archive_name;
public static string $excel_name;
public static string $useragent;
public static function switch()
@@ -67,6 +70,12 @@ class Sofascore
SqlMover::run();
break;
case 8:
self::setStorage();
MakeExcel::create();
break;
default:
Notice::note('id not valid', 'br', 1);
}
@@ -77,6 +86,7 @@ class Sofascore
$task = Nuh::$options['task'];
self::$storage = storage_path('sofascore_data') . '/';
// for grapper to start with
self::$useragent = 4;
$storage_name = Strings::clean(SofaScoreTask::where('id', $task)->value('name')) . '/';