From f7b84e2da4be50982747d7937b0dc56ac9ff2c57 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Wed, 24 Apr 2024 14:44:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=8E=B7=E5=8F=96=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=8C=85=E5=85=B3=E8=81=94=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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/InquiryService.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/Services/InquiryService.php b/app/Services/InquiryService.php index 04a01d4..5e26f9f 100644 --- a/app/Services/InquiryService.php +++ b/app/Services/InquiryService.php @@ -1590,10 +1590,18 @@ class InquiryService extends BaseService } $result = array(); - $result['finish_time'] = $finish_day; // 剩余服务天数 + $result['remaining_finish_day'] = $finish_day; // 剩余服务天数 $result['month_inquiry_count'] = $month_inquiry_count; // 服务包当月已问诊次数 $result['monthly_frequency'] = $order_service_package_detail['monthly_frequency']; // 每月次数(0表示不限次) $result['remaining_quantity'] = $remaining_quantity; // 剩余药品数量 + if (!empty($order_service_package['start_time'])){ + $result['start_time'] = date('Y-m-d H:i',strtotime($order_service_package['start_time'])); // 服务包开始时间 + } + if (!empty($order_service_package['finish_time'])){ + $result['finish_time'] = date('Y-m-d H:i',strtotime($order_service_package['finish_time'])); // 服务包结束时间 + } + $result['remaining_month_inquiry_count'] = $order_service_package_detail['monthly_frequency'] - $month_inquiry_count; // 服务包当月剩余问诊次数 + $result['service_period'] = $order_service_package_detail['service_period']; // 服务包服务周期 return success($result); }