From d35041b512c61dfc367c32b21e8f3fbab12d905e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8F=82=E7=8F=82?= Date: Fri, 15 Nov 2024 17:44:11 +0800 Subject: [PATCH] init --- packages/bydauto/src/Commands/BYDAutoCommand.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/bydauto/src/Commands/BYDAutoCommand.php b/packages/bydauto/src/Commands/BYDAutoCommand.php index 48fabb2..b66dc19 100644 --- a/packages/bydauto/src/Commands/BYDAutoCommand.php +++ b/packages/bydauto/src/Commands/BYDAutoCommand.php @@ -89,8 +89,14 @@ public function action_push2contact() } else { $sendList[$contact->id][] = $item; } - // info("分配试驾数据 {$item->id} 给联系人 {$contact->id}"); - // $this->info("分配试驾数据 {$item->id} 给联系人 {$contact->id}"); + info("分配试驾数据 {$item->id} 给联系人 {$contact->id}"); + $this->info("分配试驾数据 {$item->id} 给联系人 {$contact->id}"); + Activity::create([ + 'name' => '试驾通知', + 'content' => ['testdrive' => $item->id, 'contact' => $contact->id], + 'related_id' => $contact->id, + 'related_type' => Contact::class, + ]); $offset = ($offset + 1) % $count; } cache()->forever('push2contact:offset', $offset);