From 4b1d12785be80f583322cedabab1748faac31154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8F=82=E7=8F=82?= Date: Fri, 15 Nov 2024 17:20:51 +0800 Subject: [PATCH] init --- packages/bydauto/src/Commands/BYDAutoCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bydauto/src/Commands/BYDAutoCommand.php b/packages/bydauto/src/Commands/BYDAutoCommand.php index e504778..48fabb2 100644 --- a/packages/bydauto/src/Commands/BYDAutoCommand.php +++ b/packages/bydauto/src/Commands/BYDAutoCommand.php @@ -82,6 +82,7 @@ public function action_push2contact() $item->update(['status' => Testdrive::STATUS_REJECTED]); continue; } + $item->update(['status' => Testdrive::STATUS_PUBLISHED]); $contact = $contacts[$offset]; if (!isset($sendList[$contact->id])) { $sendList[$contact->id] = [$item]; @@ -98,7 +99,7 @@ public function action_push2contact() foreach ($sendList as $contactId => $items) { $contact = $contacts->firstWhere('id', $contactId); $this->info("发送试驾数据给联系人 {$contact->id} 总数 " . count($items)); - // $contact->notify(new TestdirveNotification($items)); + $contact->notify(new TestdirveNotification($items)); } return Command::SUCCESS; }