From 03c65b6f2ea6969308086a7a5c418179fb5d51aa Mon Sep 17 00:00:00 2001 From: xiaomlove <1939737565@qq.com> Date: Mon, 20 Jan 2025 22:40:29 +0800 Subject: [PATCH] fix Cleanup delay param --- app/Console/Commands/Cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/Cleanup.php b/app/Console/Commands/Cleanup.php index a83a5a53..6b53fda8 100644 --- a/app/Console/Commands/Cleanup.php +++ b/app/Console/Commands/Cleanup.php @@ -36,7 +36,7 @@ class Cleanup extends Command $idStr = $this->option('id_str') ?: ""; $idRedisKey = $this->option('id_redis_key') ?: ""; $commentRequestId = $this->option('request_id'); - $delay = $this->option('delay') ?: 0; + $delay = intval($this->option('delay') ?: 0); $this->info("beginId: $beginId, endId: $endId, idStr: $idStr, idRedisKey: $idRedisKey, commentRequestId: $commentRequestId, delay: $delay, action: $action"); if ($action == 'seed_bonus') { CalculateUserSeedBonus::dispatch($beginId, $endId, $idStr, $idRedisKey, $commentRequestId)->delay($delay);