This commit is contained in:
as2252258@163.com
2021-03-20 02:44:30 +08:00
parent 5d298ee7da
commit f075567e8f
+3 -2
View File
@@ -35,8 +35,8 @@ class CrontabProcess extends Process
{ {
while (true) { while (true) {
$content = $process->read(); $content = $process->read();
var_dump($content);
$_content = json_decode($content, true); $_content = json_decode($content, true);
var_dump($content, $_content);
if (is_null($_content)) { if (is_null($_content)) {
$this->jobDelivery($content); $this->jobDelivery($content);
} else { } else {
@@ -66,7 +66,7 @@ class CrontabProcess extends Process
default => function () { default => function () {
$this->application->error('unknown action'); $this->application->error('unknown action');
} }
}); }, $content);
} }
@@ -76,6 +76,7 @@ class CrontabProcess extends Process
private function jobDelivery($content) private function jobDelivery($content)
{ {
$content = unserialize($content); $content = unserialize($content);
var_dump($content);
$this->names[$content->getName()] = $content; $this->names[$content->getName()] = $content;
if (!($content instanceof Crontab)) { if (!($content instanceof Crontab)) {
return; return;