|
|
@@ -44,12 +44,12 @@ class FiveSecondTaskJob implements ShouldQueue
|
|
|
public function handle()
|
|
|
{
|
|
|
try {
|
|
|
- Log::info('🚀 开始执行5秒任务: ' . now());
|
|
|
+ Log::error('🚀 开始执行5秒任务: ' . now());
|
|
|
|
|
|
|
|
|
|
|
|
IssueService::syncCloseIssue(); // 同步停止
|
|
|
- // Log::info('✅ 获取到最新期号: ' . ($latestIssue ?? '无'));
|
|
|
+ // Log::error('✅ 获取到最新期号: ' . ($latestIssue ?? '无'));
|
|
|
|
|
|
// 你的业务逻辑
|
|
|
IssueService::getLatestIssue(); // 获取最新的期号
|
|
|
@@ -57,7 +57,7 @@ class FiveSecondTaskJob implements ShouldQueue
|
|
|
// 重要:使用类名而不是 self(),避免递归
|
|
|
FiveSecondTaskJob::dispatch()->delay(now()->addSeconds(5));
|
|
|
|
|
|
- Log::info('📅 下一个5秒任务已安排');
|
|
|
+ Log::error('📅 下一个5秒任务已安排');
|
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
Log::error('❌ 5秒任务执行异常: ' . $e->getMessage());
|