From c285caef3de12eadec82a3ee7706a1cef66f1d32 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 6 Jan 2020 15:42:07 +0800 Subject: [PATCH] Update ListenQueue.php --- vendor/zoujingli/think-library/src/queue/ListenQueue.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vendor/zoujingli/think-library/src/queue/ListenQueue.php b/vendor/zoujingli/think-library/src/queue/ListenQueue.php index 900f1a3ad..34e84a6da 100644 --- a/vendor/zoujingli/think-library/src/queue/ListenQueue.php +++ b/vendor/zoujingli/think-library/src/queue/ListenQueue.php @@ -49,7 +49,8 @@ class ListenQueue extends Command * @param Output $output 输出对象 */ protected function execute(Input $input, Output $output) - { + { $this->output->writeln('进程'); + $this->output->writeln(getmypid()); set_time_limit(0); $this->app->db->name('SystemQueue')->count(); if (($this->process = ProcessService::instance())->iswin()) { @@ -85,6 +86,8 @@ class ListenQueue extends Command */ protected function update($code, array $data = []) { + + return $this->app->db->name('SystemQueue')->where(['code' => $code])->update($data); }