From e7745ecb60afd28fa6d2e5d5ac75ee628ced84c8 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Sat, 11 Oct 2025 18:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=9E=E4=B9=A6=E6=B6=88=E6=81=AF=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2=E4=B8=BA=E7=AB=99=E5=86=85=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/process/Task.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/app/process/Task.php b/app/process/Task.php index 910b5ad..ccaa228 100644 --- a/app/process/Task.php +++ b/app/process/Task.php @@ -23,13 +23,20 @@ class Task ]; $customer = Customer::where($where)->get(); foreach ($customer as $item) { - $res =[ - 'id'=>$item->id, - 'category'=>'crm', - 'scene'=>'crm-person-follow-up', - 'receive type'=>'person' + $contacts = $item->contacts??$item['phone']; + $contacts = $contacts??$item['whatsApp']; + $contacts = $contacts??$item['email']; + $data = [ + 'sender_id' => 0, //发送人ID 0默认系统 + 'sender_type' => 'system', //发送者类型 user admin system + 'title' => '客户跟进提醒 - ' . $contacts, //标题 + 'content' => $contacts . ' 到达预定跟进时间,请及时跟进', //内容 + 'scene' => 1, //场景 0系统公共 1系统通知 + 'recipient' => [$item->user_id], //接收人 空为全部 + 'push_method' => 0 //推送方式0系统推送1手动推送 ]; - \Webman\RedisQueue\Redis::send("feishu-message",$res); + \Webman\RedisQueue\Redis::send("notice",$data); + $item->warn = 1; $item->save(); }