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; }