修正取消未支付的订单
This commit is contained in:
parent
944ab44305
commit
c918a8a31e
@ -88,15 +88,18 @@ class OrderService extends BaseService
|
|||||||
if ($order['order_type'] == 1) {
|
if ($order['order_type'] == 1) {
|
||||||
// 问诊订单
|
// 问诊订单
|
||||||
$InquiryService = new InquiryService();
|
$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) {
|
} elseif ($order['order_type'] == 2) {
|
||||||
// 药品订单
|
// 药品订单
|
||||||
$OrderProductService = new OrderProductService();
|
$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) {
|
} elseif ($order['order_type'] == 3) {
|
||||||
// 检测订单
|
// 检测订单
|
||||||
$DetectionService = new DetectionService();
|
$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) {
|
} catch (\Throwable $e) {
|
||||||
$result['status'] = 0;
|
$result['status'] = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user