From 286beb9afbef6471fddd451293f7657679063f6d Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Tue, 25 Apr 2023 14:33:52 +0800 Subject: [PATCH] =?UTF-8?q?`=E4=BF=AE=E6=94=B9=E5=8C=BB=E7=94=9F=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E8=AE=A1=E7=AE=97`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/PatientDoctorService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Services/PatientDoctorService.php b/app/Services/PatientDoctorService.php index 3684325..e60c18a 100644 --- a/app/Services/PatientDoctorService.php +++ b/app/Services/PatientDoctorService.php @@ -127,9 +127,9 @@ class PatientDoctorService extends BaseService } // 好评率-超过5个已结束的订单后展示 - $user_doctor['praise_rate'] = ceil($user_doctor['praise_rate'] * 0.05 * 100) / 100; + $user_doctor['praise_rate'] = floor($user_doctor['praise_rate'] * 0.05 * 100) / 100; // 响应时间-超过5个已结束的订单后展示 - $user_doctor['avg_response_time'] = ceil($user_doctor['avg_response_time'] * 0.05 * 100) / 100 * 60; + $user_doctor['avg_response_time'] = floor($user_doctor['avg_response_time'] * 0.05 * 100) / 100 * 60; // 获取医生订单数 $params = array(); @@ -300,7 +300,7 @@ class PatientDoctorService extends BaseService $result['praise_rate'] = floor($user_doctor['praise_rate'] * 0.05 * 100) / 100; // 响应时间-超过5个已结束的订单后展示 - $result['avg_response_time'] = floor($user_doctor['avg_response_time'] * 0.05 * 100) / 100 * 60; + $result['avg_response_time'] = floor($user_doctor['avg_response_time'] /60 * 100) / 100; $params = array(); $params['doctor_id'] = $user_doctor['doctor_id'];