改名
This commit is contained in:
+2
-3
@@ -95,16 +95,15 @@ class Crontab extends Component
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Crontab $crontab
|
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function dispatch(Crontab $crontab)
|
public function dispatch()
|
||||||
{
|
{
|
||||||
$redis = Snowflake::app()->getRedis();
|
$redis = Snowflake::app()->getRedis();
|
||||||
|
|
||||||
$executeTime = $this->tickTime + time();
|
$executeTime = $this->tickTime + time();
|
||||||
|
|
||||||
$redis->zAdd('system:crontab', (string)$executeTime, serialize($crontab));
|
$redis->zAdd('system:crontab', (string)$executeTime, serialize($this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user