From 0a3edd9e640943bdb938022ed3db27456ccd88d6 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Tue, 25 May 2021 22:06:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Process/AsyncQueueConsumer.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/Process/AsyncQueueConsumer.php b/app/Process/AsyncQueueConsumer.php index 34a149a..ab35d8a 100644 --- a/app/Process/AsyncQueueConsumer.php +++ b/app/Process/AsyncQueueConsumer.php @@ -15,13 +15,18 @@ namespace App\Process; use Hyperf\AsyncQueue\Process\ConsumerProcess; use Hyperf\Process\Annotation\Process; -///** -// * @Process -// */ +/** + * @Process + */ class AsyncQueueConsumer extends ConsumerProcess { public function handle(): void { } + + public function isEnable($server): bool + { + return false; + } }