From 0a4db6d90241ab384694a8d75d82c09e997f7c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8F=82=E7=8F=82?= Date: Fri, 15 Nov 2024 16:13:17 +0800 Subject: [PATCH] init --- packages/bydauto/src/Commands/BYDAutoCommand.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/bydauto/src/Commands/BYDAutoCommand.php b/packages/bydauto/src/Commands/BYDAutoCommand.php index 7c90c84..6ce6d6a 100644 --- a/packages/bydauto/src/Commands/BYDAutoCommand.php +++ b/packages/bydauto/src/Commands/BYDAutoCommand.php @@ -50,9 +50,14 @@ public function action_push2contact() $items = Testdrive::query() ->whereNotNull('source') ->where('status', Testdrive::STATUS_DRAFT) + ->orderBy('id') + ->get(); + + $contacts = Contact::query() + ->where('status', Contact::STATUS_PUBLISHED) + ->orderBy('id') ->get(); - $contacts = Contact::query()->where('status', Contact::STATUS_PUBLISHED)->get(); $count = $contacts->count(); $offset = cache()->get('push2contact:offset', 0); foreach ($items as $item) {