From 9c0f0b71163818d9e182f74a90c4acaa6a34a24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8F=82=E7=8F=82?= Date: Mon, 9 Dec 2024 15:16:08 +0800 Subject: [PATCH] dev --- packages/bydauto/src/Commands/BYDAutoCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;