From 3240a9e60c58131c1a29f7a0ae2b6dcd65d760d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8F=82=E7=8F=82?= Date: Mon, 9 Dec 2024 15:28:05 +0800 Subject: [PATCH] dev --- packages/bydauto/src/Commands/BYDAutoCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; // 联系人