From 2b35f7870e8bffcedf1199f08f4e7c9f6e32e009 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 27 Apr 2023 13:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=A9=E6=B5=81=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E4=BF=A1=E6=81=AF=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Amqp/Consumer/SendSubMessageConsumer.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Amqp/Consumer/SendSubMessageConsumer.php b/app/Amqp/Consumer/SendSubMessageConsumer.php index ce93123..9fbd558 100644 --- a/app/Amqp/Consumer/SendSubMessageConsumer.php +++ b/app/Amqp/Consumer/SendSubMessageConsumer.php @@ -197,17 +197,17 @@ class SendSubMessageConsumer extends ConsumerMessage * 接收所有异常 * 只返回true,失败情况不处理 * @param array $sms_data 短信发送参数 - * @return bool + * @return void * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ - private function addSendSmsMessageQueue(array $sms_data): bool + private function addSendSmsMessageQueue(array $sms_data): void { try { if (empty($sms_data)){ // 无需发送短信 Log::getInstance()->info("无数据需添加短信推送队列"); - return true; + return; } Log::getInstance()->info("添加短信推送队列"); @@ -226,7 +226,6 @@ class SendSubMessageConsumer extends ConsumerMessage Log::getInstance()->info("添加短信推送队列成功"); - return true; } /**