From c7496d01e8fc93677721dce2afab7b125972d587 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 11 Apr 2023 13:30:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BB=B6=E8=BF=9F=E9=98=9F?= =?UTF-8?q?=E5=88=97=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../getPrescriptionOrderStatusCommand.php | 41 +++++++++++++++++++ app/Services/InquiryService.php | 4 +- app/Services/UserPharmacistService.php | 2 +- 3 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 app/Command/getPrescriptionOrderStatusCommand.php diff --git a/app/Command/getPrescriptionOrderStatusCommand.php b/app/Command/getPrescriptionOrderStatusCommand.php new file mode 100644 index 0000000..dc04651 --- /dev/null +++ b/app/Command/getPrescriptionOrderStatusCommand.php @@ -0,0 +1,41 @@ +setDescription('获取处方平台订单状态'); + } + + public function handle() + { + $this->line("获取处方平台订单状态开始"); + + try { + // 获取需执行订单数据 + $params = array(); + $params['order_product_status'] = ""; + + } catch (\Exception $e) { + $this->line("获取处方平台订单状态失败:" . $e->getMessage()); + } + } +} diff --git a/app/Services/InquiryService.php b/app/Services/InquiryService.php index 1855f12..0babf78 100644 --- a/app/Services/InquiryService.php +++ b/app/Services/InquiryService.php @@ -269,7 +269,7 @@ class InquiryService extends BaseService $data['order_type'] = 1; $message = new CancelUnpayOrdersDelayDirectProducer($data); - $message->setDelayMs(1000 * 60 * 30); + $message->setDelayMs(1000 * 60 * 5); $producer = $this->container->get(Producer::class); $res = $producer->produce($message); if (!$res) { @@ -282,7 +282,7 @@ class InquiryService extends BaseService $data = array(); $data['order_inquiry_id'] = $order_inquiry['order_inquiry_id']; $message = new CancelUnInquiryOrdersDelayDirectProducer($data); - $message->setDelayMs(1000 * 60 * 60 * 24); + $message->setDelayMs(1000 * 60 * 5); $producer = $this->container->get(Producer::class); $res = $producer->produce($message); if (!$res) { diff --git a/app/Services/UserPharmacistService.php b/app/Services/UserPharmacistService.php index 5e8459a..69fcee0 100644 --- a/app/Services/UserPharmacistService.php +++ b/app/Services/UserPharmacistService.php @@ -256,7 +256,7 @@ class UserPharmacistService extends BaseService $data['order_prescription_id'] = (string)$order_prescription['order_prescription_id']; $message = new PrescriptionExpiredDelayDirectProducer($data); - $message->setDelayMs(1000 * 60 * 60 * 24 * 3); + $message->setDelayMs(1000 * 60 * 10); $producer = $this->container->get(Producer::class); $res = $producer->produce($message); if (!$res) {