From b262a3ad0a26b925b9c7f57c118f7ae25ac615bc Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 26 Mar 2021 01:41:18 +0800 Subject: [PATCH] modify --- System/Crontab/Consumer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();