From d4e9da8d6db7b52d78d1abd901d571b39b8f5695 Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Fri, 17 Oct 2025 11:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/command/ApplySmsTemp.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/command/ApplySmsTemp.php b/app/command/ApplySmsTemp.php index 84b659e..fc2f11e 100644 --- a/app/command/ApplySmsTemp.php +++ b/app/command/ApplySmsTemp.php @@ -76,7 +76,7 @@ class ApplySmsTemp extends Command $data = $msg->body; Log::info('MQ收到消息[申请新短信模版/营销短信发送/微信模版消息]--->' . $data . "\n"); $arr = explode(',', $data); - if(is_array($arr)) { + if(isset($arr[2])) { $type = $arr[2]; if($type == 'applySmsTemp') { // 发给队列 短信模版审核 @@ -90,7 +90,6 @@ class ApplySmsTemp extends Command } }else { Log::info('MQ收到消息[申请新短信模版/营销短信发送/微信模版消息]格式错误'); - return false; } $msg->delivery_info['channel']->basic_ack($msg->delivery_info['delivery_tag']); };