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

This commit is contained in:
珂珂 2024-12-09 15:16:08 +08:00
parent 6bb2dcff97
commit 9c0f0b7116

View File

@ -130,11 +130,11 @@ public function action_push2contact()
->take($num) ->take($num)
->get(); ->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()} 条数据(已去重),是否继续?"); $confirm = $this->confirm("共有 {$items->count()} 条数据(已去重),是否继续?");
if (!$confirm) return Command::SUCCESS; if (!$confirm) return Command::SUCCESS;