diff --git a/System/Crontab/Consumer.php b/System/Crontab/Consumer.php index ce94f49e..d0388951 100644 --- a/System/Crontab/Consumer.php +++ b/System/Crontab/Consumer.php @@ -58,7 +58,7 @@ class Consumer extends Process */ public function tick(\Swoole\Process $process) { - [$value, $startTime] = swoole_unserialize($process->read(-1)); + [$value, $startTime] = swoole_unserialize($process->read()); $redis = Snowflake::app()->getRedis();