This commit is contained in:
parent
c822f2ab09
commit
3240a9e60c
@ -133,12 +133,13 @@ public function action_push2contact()
|
||||
|
||||
$items = $items->merge($items1)->merge($items2);
|
||||
|
||||
$rawTotal = $items->count();
|
||||
// 根据手机号码去除重
|
||||
$items = $items->unique('mobile');
|
||||
// 根据已发送的手机号码去重
|
||||
$items = $items->filter(fn($item) => !in_array($item->mobile, $sendItems));
|
||||
|
||||
$confirm = $this->confirm("共有 {$items->count()} 条数据(已去重),是否继续?");
|
||||
$confirm = $this->confirm("共有 {$rawTotal} 条数据, 去重后 {$items->count()} 条数据,是否继续?");
|
||||
if (!$confirm) return Command::SUCCESS;
|
||||
|
||||
// 联系人
|
||||
|
Loading…
Reference in New Issue
Block a user