init
All checks were successful
Deploy to Production / deploy (push) Successful in 18s

This commit is contained in:
珂珂
2024-11-15 17:20:51 +08:00
parent 174ea8d0e6
commit 4b1d12785b

View File

@@ -82,6 +82,7 @@ class BYDAutoCommand extends Command
$item->update(['status' => Testdrive::STATUS_REJECTED]); $item->update(['status' => Testdrive::STATUS_REJECTED]);
continue; continue;
} }
$item->update(['status' => Testdrive::STATUS_PUBLISHED]);
$contact = $contacts[$offset]; $contact = $contacts[$offset];
if (!isset($sendList[$contact->id])) { if (!isset($sendList[$contact->id])) {
$sendList[$contact->id] = [$item]; $sendList[$contact->id] = [$item];
@@ -98,7 +99,7 @@ class BYDAutoCommand extends Command
foreach ($sendList as $contactId => $items) { foreach ($sendList as $contactId => $items) {
$contact = $contacts->firstWhere('id', $contactId); $contact = $contacts->firstWhere('id', $contactId);
$this->info("发送试驾数据给联系人 {$contact->id} 总数 " . count($items)); $this->info("发送试驾数据给联系人 {$contact->id} 总数 " . count($items));
// $contact->notify(new TestdirveNotification($items)); $contact->notify(new TestdirveNotification($items));
} }
return Command::SUCCESS; return Command::SUCCESS;
} }