diff --git a/app/Services/DetectionService.php b/app/Services/DetectionService.php index 0275bba..63a7872 100644 --- a/app/Services/DetectionService.php +++ b/app/Services/DetectionService.php @@ -411,6 +411,8 @@ class DetectionService extends BaseService $data['detection_pay_channel'] = $detection_pay_channel; // 支付渠道(1:小程序支付 2:微信扫码支付 3:模拟支付) $data['detection_no'] = "D" . $generator->generate(); // 系统订单编号 $data['amount_total'] = $detection_project['detection_project_price']; // 订单金额 + $data['coupon_amount_total'] = 0;// 优惠卷总金额 + $data['payment_amount_total'] = $detection_project['detection_project_price'];// 实际付款金额 $data['patient_name'] = $patient_family['card_name'];// 患者姓名-就诊人 $data['patient_name_mask'] = $patient_family['card_name_mask'];// 患者姓名-就诊人(掩码) $data['patient_sex'] = $patient_family['sex'];// 患者性别-就诊人(0:未知 1:男 2:女) diff --git a/app/Services/PatientOrderService.php b/app/Services/PatientOrderService.php index 6af2b64..d831fe2 100644 --- a/app/Services/PatientOrderService.php +++ b/app/Services/PatientOrderService.php @@ -854,7 +854,7 @@ class PatientOrderService extends BaseService $result['payment_amount_total'] = $order_detection['amount_total']; // 实际订单金额 $result['coupon_amount_total'] = 0; // 优惠金额 - if ($order_detection['amount_total'] > 0) { + if ($order_detection['payment_amount_total'] > 0) { // 发起支付 $WechatPay = new WechatPay(1, 3);