From 709a7abe0b3c648b28495113d70c046afa08a283 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Thu, 18 Apr 2024 17:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=AF=E5=93=81=E8=AE=A2=E5=8D=95=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E3=80=81=E5=88=9B=E5=BB=BA=E8=8D=AF=E5=93=81=E8=AE=A2?= =?UTF-8?q?=E5=8D=951?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/PatientOrderService.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/Services/PatientOrderService.php b/app/Services/PatientOrderService.php index c1f4d61..0131d5b 100644 --- a/app/Services/PatientOrderService.php +++ b/app/Services/PatientOrderService.php @@ -948,9 +948,8 @@ class PatientOrderService extends BaseService } // 优惠卷商品数据 - $coupon_product_data = array(); $product['product_num'] = $order_prescription_product['prescription_product_num']; - $coupon_product_data = $product; + $coupon_product_data = $product->toArray(); $coupon_product_datas[] = $coupon_product_data; } @@ -1131,10 +1130,8 @@ class PatientOrderService extends BaseService } /** - *模拟支付成功-金额为0时使用-问诊订单 + *模拟支付成功-金额为0时使用 * @return array - * @throws ContainerExceptionInterface - * @throws NotFoundExceptionInterface */ public function addPatientOrderPay(): array { @@ -1561,10 +1558,12 @@ class PatientOrderService extends BaseService 2 ); if ($app_env == "dev") { - $payment_amount_total = 0.01; + if ($payment_amount_total > 0){ + $payment_amount_total = 0.01; + } } - if ($payment_amount_total <= 0){ + if ($payment_amount_total < 0){ return fail(HttpEnumCode::SERVER_ERROR); }