This commit is contained in:
parent
6bb2dcff97
commit
9c0f0b7116
@ -130,11 +130,11 @@ public function action_push2contact()
|
||||
->take($num)
|
||||
->get();
|
||||
|
||||
$items = $items1->merge($items2);
|
||||
$items2->merge($items1);
|
||||
// 根据手机号码去除重
|
||||
$items = $items->unique('mobile');
|
||||
$items2 = $items2->unique('mobile');
|
||||
// 根据已发送的手机号码去重
|
||||
$items = $items->filter(fn($item) => !in_array($item->mobile, $sendItems));
|
||||
$items = $items2->filter(fn($item) => !in_array($item->mobile, $sendItems));
|
||||
|
||||
$confirm = $this->confirm("共有 {$items->count()} 条数据(已去重),是否继续?");
|
||||
if (!$confirm) return Command::SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user