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;