diff --git a/packages/bydauto/src/Commands/BYDAutoCommand.php b/packages/bydauto/src/Commands/BYDAutoCommand.php index 99036e5..aedde63 100644 --- a/packages/bydauto/src/Commands/BYDAutoCommand.php +++ b/packages/bydauto/src/Commands/BYDAutoCommand.php @@ -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; // 联系人