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 @@ public function handle() $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);