diff --git a/packages/bydauto/src/Commands/BYDAutoCommand.php b/packages/bydauto/src/Commands/BYDAutoCommand.php index 926fa9a..99036e5 100644 --- a/packages/bydauto/src/Commands/BYDAutoCommand.php +++ b/packages/bydauto/src/Commands/BYDAutoCommand.php @@ -122,7 +122,6 @@ public function action_push2contact() ->orderBy('id') ->take($num) ->get(); - $items->push($items1); $num = $this->ask('ID 倒叙取出', 100); $items2 = Testdrive::query() @@ -131,7 +130,8 @@ public function action_push2contact() ->orderBy('id', 'desc') ->take($num) ->get(); - $items->push($items2); + + $items = $items->merge($items1)->merge($items2); // 根据手机号码去除重 $items = $items->unique('mobile');