From 2249bdd9364963e99cbd43b5bf618a05acbb1450 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Mon, 17 Jul 2023 02:00:20 +0800 Subject: [PATCH] fix cleanup idStr string --- app/Console/Commands/Cleanup.php | 2 +- app/Jobs/CalculateUserSeedBonus.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Cleanup.php b/app/Console/Commands/Cleanup.php index d2a2d39e..b3398ac3 100644 --- a/app/Console/Commands/Cleanup.php +++ b/app/Console/Commands/Cleanup.php @@ -33,7 +33,7 @@ class Cleanup extends Command $action = $this->option('action'); $beginId = $this->option('begin_id'); $endId = $this->option('end_id'); - $idStr = $this->option('id_str'); + $idStr = $this->option('id_str') ?: ""; $commentRequestId = $this->option('request_id'); $delay = $this->option('delay') ?: 0; $this->info("beginId: $beginId, endId: $endId, idStr: $idStr, commentRequestId: $commentRequestId, delay: $delay, action: $action"); diff --git a/app/Jobs/CalculateUserSeedBonus.php b/app/Jobs/CalculateUserSeedBonus.php index 5ec3be37..91a5c61a 100644 --- a/app/Jobs/CalculateUserSeedBonus.php +++ b/app/Jobs/CalculateUserSeedBonus.php @@ -49,7 +49,7 @@ class CalculateUserSeedBonus implements ShouldQueue public $tries = 1; - public $timeout = 600; + public $timeout = 3600; /** * Execute the job.