This commit is contained in:
salam committed 2026-07-22 08:58:44 +02:00
1 parent 98c61bfcd1
commit 1890b1fcc2
4 files changed
+16 -16

No files matched your search

@@ -21,6 +21,8 @@ class Grapper
{ {
$debug = Nuh::$options['d'] ?? 0; $debug = Nuh::$options['d'] ?? 0;
$force = Nuh::$options['f'] ?? 0;
$task_id = Nuh::$options['task'] ?? 0; $task_id = Nuh::$options['task'] ?? 0;
$restart = Nuh::$options['restart'] ?? 0; $restart = Nuh::$options['restart'] ?? 0;
@@ -84,7 +86,7 @@ class Grapper
foreach ($data['events'] as $event) { foreach ($data['events'] as $event) {
if (SofaScoreEventGrapped::where('id', (int) $event['id'])->exists()) { if (!$force && SofaScoreEventGrapped::where('id', (int) $event['id'])->exists()) {
if ($debug) { if ($debug) {
Notice::note('Grapped ' . $day . ' - ' . $event['homeTeam']['name'] . ' vs ' . $event['awayTeam']['name'], 'g'); Notice::note('Grapped ' . $day . ' - ' . $event['homeTeam']['name'] . ' vs ' . $event['awayTeam']['name'], 'g');
} }
@@ -35,7 +35,7 @@ class LoadDays
case 'daily': case 'daily':
$dates[] = [ $dates[] = [
'day' => Carbon::now()->subDay()->format('Y-m-d'), 'day' => Carbon::now()->subDays(3)->format('Y-m-d'),
'slug' => $task->sport->ss_slug, 'slug' => $task->sport->ss_slug,
'sport_id' => $task->sport_id, 'sport_id' => $task->sport_id,
]; ];
@@ -14,7 +14,6 @@ class SofaScoreTaskForm
public static function configure(Schema $schema): Schema public static function configure(Schema $schema): Schema
{ {
return $schema return $schema
->columns(5)
->components([ ->components([
TextInput::make('name') TextInput::make('name')
->required(), ->required(),
+12 -13
View File
@@ -5,11 +5,10 @@ case "$1" in
echo "GRAPPER SOFASCORE" echo "GRAPPER SOFASCORE"
echo "--------------------------" echo "--------------------------"
echo "parameter ID" echo "parameter ID"
echo "--fun = Sofascore.php switch() "
echo "--task = sofa_score_tasks_id" echo "--task = sofa_score_tasks_id"
echo "daily 1" echo "--restart = [0|1]"
echo "dates 2"
echo "--------------------------" echo "--------------------------"
echo "--fun = Sofascore.php switch() "
echo "SELECT liga, name, starttime FROM sofa_score_event_grappeds WHERE grapper_id = 1;" echo "SELECT liga, name, starttime FROM sofa_score_event_grappeds WHERE grapper_id = 1;"
echo "" echo ""
exit 1 exit 1
@@ -19,23 +18,23 @@ case "$1" in
echo "\n⚽ sofa_score_task $1" echo "\n⚽ sofa_score_task $1"
echo "\n⚽ close all vpn" # echo "\n⚽ close all vpn"
killall ssh # killall ssh
echo "\n⚽ open vpn" # echo "\n⚽ open vpn"
ssh -f -N -L 13306:127.0.0.1:3306 -p 58371 root@162.55.242.190 # ssh -f -N -L 13306:127.0.0.1:3306 -p 58371 root@162.55.242.190
echo "\n⚽ Settings To Local" # echo "\n⚽ Settings To Local"
php artisan nuh --d --f 67 --fun=2 --task=$1 # php artisan nuh --d --f 67 --fun=2 --task=$1
echo "\n⚽ close vpn" # echo "\n⚽ close vpn"
killall ssh # killall ssh
echo "\n⚽ Grapper" echo "\n⚽ Grapper"
php artisan nuh --d --f 67 --fun=3 --task=$1 --restart=$2 php artisan nuh --d --f 67 --fun=3 --task=$1 --restart=$2
echo "\n⚽ CreateZip" # echo "\n⚽ CreateZip"
php artisan nuh --d --f 67 --fun=4 --task=$1 # php artisan nuh --d --f 67 --fun=4 --task=$1
# echo "\n⚽ SendMail" # echo "\n⚽ SendMail"
# php artisan nuh --d --f 67 --fun=5 --task=$1 # php artisan nuh --d --f 67 --fun=5 --task=$1