From 9f77b93b25c70a8f49c7e0cc0c0cdbd6127dcb8c Mon Sep 17 00:00:00 2001 From: mzl Date: Thu, 11 Dec 2025 07:06:25 +0000 Subject: [PATCH] bf --- app/command/InquiryReissueCommand.php | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 app/command/InquiryReissueCommand.php diff --git a/app/command/InquiryReissueCommand.php b/app/command/InquiryReissueCommand.php new file mode 100644 index 0000000..794d419 --- /dev/null +++ b/app/command/InquiryReissueCommand.php @@ -0,0 +1,43 @@ +where('sync_crm', 0) + ->where('id', '>', 33785) + ->orderBy('id') + ->get(); + + foreach ($inquiries as $row) { + $inquiryId = (int)$row->id; + + var_dump('补发ID:'.$inquiryId); + + sleep(1); + + $res = [ + 'id' => $inquiryId + ]; + RedisQueueRedis::send('inquiry-to-crm-new', $res); + } + + return self::SUCCESS; + } +} \ No newline at end of file