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