From 72e98210e7b338080ba3861d8cb7eba104744be0 Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Tue, 11 Nov 2025 10:22:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=A5=E9=94=80=E7=9F=AD=E4=BF=A1=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=BB=9F=E8=AE=A1=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/command/QuerySmsStatus.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/command/QuerySmsStatus.php b/app/command/QuerySmsStatus.php index ac3133f..5abe1be 100644 --- a/app/command/QuerySmsStatus.php +++ b/app/command/QuerySmsStatus.php @@ -136,12 +136,13 @@ class QuerySmsStatus extends Command } // 营销短信发送失败成功统计 - $sms_push_event_list = Db::name('sms_push_event')->where(['status' => 1])->select()->toArray(); + $sms_push_event_list = Db::name('sms_push_event')->where(['status' => 1])->field('id')->select()->toArray(); if($sms_push_event_list) { Log::info('营销短信发送失败成功统计开始->' . json_encode($sms_push_event_list)); foreach ($sms_push_event_list as $k => $v) { $result = Db::table('sms_push_event_record') ->where('event_id', $v['id']) // 统一筛选 event_id=2 的数据 + ->where('type', 'sms') ->field([ // 1. event_id=2 的实际人数 'COUNT(*) AS total_count',