getRedis(); if (is_array($handler) && is_string($handler[0])) { $handler[0] = Snowflake::createObject($handler[0]); } $executeTime = time() + $tickTime; $crontab = ['isLoop' => $isLoop, 'handler' => $handler, 'tick' => $tickTime, 'params' => $params]; $redis->zAdd('system:crontab', $executeTime, serialize($crontab)); } }