From df10c7c7d726bfbe64bc5d974585481eb39fd218 Mon Sep 17 00:00:00 2001 From: mzl Date: Fri, 22 Aug 2025 19:04:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AF=A2=E5=8D=95=E5=88=86?= =?UTF-8?q?=E9=85=8D=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/queue/redis/InquiryToCrm.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/queue/redis/InquiryToCrm.php b/app/queue/redis/InquiryToCrm.php index 7bec9ca..b3c3240 100644 --- a/app/queue/redis/InquiryToCrm.php +++ b/app/queue/redis/InquiryToCrm.php @@ -77,6 +77,17 @@ class InquiryToCrm implements Consumer // Log::info('发送邮件消息:' . json_encode($options)); \Webman\RedisQueue\Redis::send('email-message', $options); } + + $wsdata = [ + 'sender_id' => 0, + 'sender_type' => 'system', + 'title' => '有新的客户线索,SN:' . $info->order_no . ',请及时处理', + 'content' => '有新的客户线索,SN:' . $info->order_no . ',请及时处理', + 'scene' => 1, + 'recipient' => [$info->recipient] + ]; + // 异步推送 + \Webman\RedisQueue\Redis::send('notice', $wsdata); } } catch (\Throwable $th) { throw $th;