Add (ai gen)

This commit is contained in:
2023-10-02 00:45:34 +08:00
parent a47fe6992a
commit 626c1dda3e

View File

@@ -48,7 +48,6 @@ protected function schedule(Schedule $schedule)
$nextRun->save(); $nextRun->save();
} }
} }
}
else else
{ {
$nextRun = new DailyTaskSchedule; $nextRun = new DailyTaskSchedule;
@@ -56,6 +55,8 @@ protected function schedule(Schedule $schedule)
$nextRun->next_run_time = now()->addMinutes(rand(0, 1440))->toTimeString(); $nextRun->next_run_time = now()->addMinutes(rand(0, 1440))->toTimeString();
$nextRun->save(); $nextRun->save();
} }
}
})->everyMinute(); })->everyMinute();