This commit is contained in:
as2252258@163.com
2021-04-12 03:04:42 +08:00
parent f0b014b4db
commit e3ba5a29b7
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -203,11 +203,11 @@ class Crontab extends BaseObject
{
$redis = Snowflake::app()->getRedis();
$redis->set('crontab:' . md5($this->getName()), swoole_serialize($this));
$redis->set('crontab:' . ($name = md5($this->getName())), swoole_serialize($this));
$tickTime = time() + $this->getTickTime();
$redis->zAdd(Producer::CRONTAB_KEY, $tickTime, $this->getName());
$redis->zAdd(Producer::CRONTAB_KEY, $tickTime, $name);
}