From c918a8a31e96cda7fcfb38f11187a77c72dd4382 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 8 Apr 2024 15:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8F=96=E6=B6=88=E6=9C=AA?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=9A=84=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/OrderService.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Services/OrderService.php b/app/Services/OrderService.php index d6e6fa1..a08270a 100644 --- a/app/Services/OrderService.php +++ b/app/Services/OrderService.php @@ -88,15 +88,18 @@ class OrderService extends BaseService if ($order['order_type'] == 1) { // 问诊订单 $InquiryService = new InquiryService(); - $result = $InquiryService->cancelUnpayInquiryOrder($order['order_id'], $cancel_reason, $cancel_remarks); + $result = $InquiryService->cancelUnpayInquiryOrder($order['order_no'], $cancel_reason, $cancel_remarks); } elseif ($order['order_type'] == 2) { // 药品订单 $OrderProductService = new OrderProductService(); - $result = $OrderProductService->cancelUnpayProductOrder($order['order_id'], $cancel_reason, $cancel_remarks); + $result = $OrderProductService->cancelUnpayProductOrder($order['order_no'], $cancel_reason, $cancel_remarks); } elseif ($order['order_type'] == 3) { // 检测订单 $DetectionService = new DetectionService(); - $result = $DetectionService->cancelUnpayDetectionOrder($order['order_id'], $cancel_reason, $cancel_remarks); + $result = $DetectionService->cancelUnpayDetectionOrder($order['order_no'], $cancel_reason, $cancel_remarks); + }else{ + $result['status'] = 0; + $result['message'] = "订单类型错误"; } } catch (\Throwable $e) { $result['status'] = 0;