dev
All checks were successful
Deploy to Production / deploy (push) Successful in 15s

This commit is contained in:
珂珂 2024-12-09 15:28:05 +08:00
parent c822f2ab09
commit 3240a9e60c

View File

@ -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;
// 联系人