| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace App\Jobs;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Queue\Queueable;
- use Illuminate\Support\Facades\Log;
- use App\Services\FixtureService;
- // 每日执行任务
- class DailyReportJob implements ShouldQueue
- {
- use Queueable;
- /**
- * Create a new job instance.
- */
- public function __construct()
- {
- //
- }
- /**
- * Execute the job.
- */
- public function handle(): void
- {
- //
- Log::info('DailyReportJob executed at ' . now());
-
- FixtureService::index();
- Log::info('Generating daily report...');
- }
- }
|