diff --git a/packages/bydauto/src/Commands/BYDAutoCommand.php b/packages/bydauto/src/Commands/BYDAutoCommand.php index 62cc0a8..b833eb4 100644 --- a/packages/bydauto/src/Commands/BYDAutoCommand.php +++ b/packages/bydauto/src/Commands/BYDAutoCommand.php @@ -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;