From d40d3cc2824e61442132da6a682e373b0cc71a57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 7 Jun 2021 12:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Crontab/Zookeeper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Crontab/Zookeeper.php b/System/Crontab/Zookeeper.php index bb4c27db..cd7b9235 100644 --- a/System/Crontab/Zookeeper.php +++ b/System/Crontab/Zookeeper.php @@ -123,7 +123,7 @@ local _two = redis.call('zRangeByScore', KEYS[1], '0', ARGV[1]) redis.call('ZREM', KEYS[1], unpack(_two)) -return _two +return {_two} SCRIPT; $data = $redis->eval($script, [Producer::CRONTAB_KEY, (string)time()], 1); var_dump($data);