wip
This commit is contained in:
1 parent
75d7914a59
commit
dc76eb35ae
21 files changed
+177
-178
No files matched your search
@@ -28,13 +28,9 @@ class Sofascore
|
||||
|
||||
self::$storage_path = storage_path('zip_sofascore_data');
|
||||
|
||||
$task = Nuh::$options['task'] ?? 0;
|
||||
$function = Nuh::$options['fun'];
|
||||
|
||||
$process = Nuh::$options['run'];
|
||||
|
||||
$days = LoadDays::load($task);
|
||||
|
||||
switch($process){
|
||||
switch($function){
|
||||
case 1:
|
||||
PlayerPerSeason::run();
|
||||
break;
|
||||
@@ -42,29 +38,22 @@ class Sofascore
|
||||
SettingsToLocal::run();
|
||||
break;
|
||||
case 3:
|
||||
if($days){
|
||||
CreateZip::run($days);
|
||||
}
|
||||
CreateZip::run();
|
||||
break;
|
||||
case 4:
|
||||
if($days){
|
||||
SendMail::run($days);
|
||||
}
|
||||
SendMail::run();
|
||||
break;
|
||||
case 5:
|
||||
if($days){
|
||||
DaysTournament::run($days);
|
||||
}
|
||||
DaysTournament::run();
|
||||
break;
|
||||
case 6:
|
||||
if($days){
|
||||
Grapper::load($days);
|
||||
}
|
||||
Grapper::load();
|
||||
break;
|
||||
case 7:
|
||||
if($days){
|
||||
TaskConfig::set($task);
|
||||
}
|
||||
TaskConfig::start();
|
||||
break;
|
||||
case 8:
|
||||
TaskConfig::end();
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user