From f8af5917eec911b1f902b60bb893be4c23c22f2b Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Thu, 29 Feb 2024 17:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=97=AE=E8=AF=8A=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=B6=88=E6=81=AF=E5=86=85=E9=A1=B5=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E9=97=AE=E8=AF=8A=E5=9B=9E=E5=90=88=E4=BF=AE?= =?UTF-8?q?=E6=94=B912?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/InquiryService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/InquiryService.php b/app/Services/InquiryService.php index 3e5cb54..617ed24 100644 --- a/app/Services/InquiryService.php +++ b/app/Services/InquiryService.php @@ -871,6 +871,8 @@ class InquiryService extends BaseService return fail(HttpEnumCode::HTTP_ERROR, "订单错误"); } + $order_inquiry = $order_inquiry->toArray(); + if ($user_info['user_type'] == 1) { if ($order_inquiry['patient_id'] != $user_info['client_user_id']) { return fail(HttpEnumCode::SERVER_ERROR); @@ -936,7 +938,7 @@ class InquiryService extends BaseService } $order_inquiry['times_number'] = $doctor_inquiry_config_service['service_period']; // 服务回合数 - $order_inquiry['duration'] = $doctor_inquiry_config_service['duration'] * 24 * 60; // 服务周期 + $order_inquiry['duration'] = $doctor_inquiry_config_service['service_rounds'] * 24 * 60; // 服务周期 }else{ $params = array(); $params['inquiry_type'] = $order_inquiry['inquiry_type'];