From b2a9272723ef21533180a919675e0dc1596010bc Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 8 Apr 2024 15:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=AA=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=AE=A2=E5=8D=95=E5=BB=B6=E8=BF=9F=E9=98=9F?= =?UTF-8?q?=E5=88=97=E6=97=B6=E9=97=B4=E7=8E=AF=E5=A2=83=E5=8C=BA=E5=88=86?= =?UTF-8?q?=EF=BC=8C=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=835=E5=88=86?= =?UTF-8?q?=E9=92=9F=E3=80=82=E5=A2=9E=E5=8A=A0=E6=9C=AA=E6=8E=A5=E8=AF=8A?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=AE=A2=E5=8D=95=E5=BB=B6=E8=BF=9F=E9=98=9F?= =?UTF-8?q?=E5=88=97=E6=97=B6=E9=97=B4=E7=8E=AF=E5=A2=83=E5=8C=BA=E5=88=86?= =?UTF-8?q?=EF=BC=8C=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83=E4=B8=BA10?= =?UTF-8?q?=E5=88=86=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/InquiryService.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Services/InquiryService.php b/app/Services/InquiryService.php index 4280170..a341441 100644 --- a/app/Services/InquiryService.php +++ b/app/Services/InquiryService.php @@ -477,12 +477,17 @@ class InquiryService extends BaseService } // 增加至未支付取消订单延迟队列 + $time = 60 * 30; + if (\Hyperf\Config\config('app_env') == "dev"){ + $time = 60 * 5; + } + $data = array(); $data['order_no'] = $order_inquiry['inquiry_no']; $data['order_type'] = 1; $message = new CancelUnpayOrdersDelayDirectProducer($data); - $message->setDelayMs(1000 * 60 * 30); + $message->setDelayMs(1000 * $time); $producer = $this->container->get(Producer::class); $res = $producer->produce($message); if (!$res) { @@ -493,10 +498,15 @@ class InquiryService extends BaseService // 加入未接诊取消订单延迟队列 // 专家问诊-公益问诊 if (!empty($request_params['doctor_id']) && ($request_params['inquiry_type'] == 1 || $request_params['inquiry_type'] == 3)) { + $time = 60 * 60 * 24; + if (\Hyperf\Config\config('app_env') == "dev"){ + $time = 60 * 10; + } + $data = array(); $data['order_inquiry_id'] = $order_inquiry['order_inquiry_id']; $message = new CancelUnInquiryOrdersDelayDirectProducer($data); - $message->setDelayMs(1000 * 60 * 60 * 24); + $message->setDelayMs(1000 * $time); $producer = $this->container->get(Producer::class); $res = $producer->produce($message); if (!$res) {