This commit is contained in:
parent
386d2dea92
commit
d35041b512
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user