From 5bea585b48006db2f7ccfc28e3062edc1792ced3 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Mon, 17 Apr 2023 16:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=84=E4=BB=B7=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/UserDoctorService.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index eefab9b..81f024b 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -713,10 +713,10 @@ class UserDoctorService extends BaseService $avg_score_params = [0, 100]; } elseif ($evaluation_type == 2) { // 好评 - $avg_score_params = [81, 100]; + $avg_score_params = [80, 100]; } elseif ($evaluation_type == 3) { // 中/差评 - $avg_score_params = [0, 80]; + $avg_score_params = [0, 79]; } else { return fail(); } @@ -732,11 +732,11 @@ class UserDoctorService extends BaseService // 获取其他类型评论总数 if ($evaluation_type == 1) { // 好评 - $avg_score_params = [81, 100]; + $avg_score_params = [80, 100]; $good_quantity = OrderEvaluation::getScoreCount($params, $avg_score_params); // 中/差评 - $avg_score_params = [0, 80]; + $avg_score_params = [0, 79]; $bad_quantity = OrderEvaluation::getScoreCount($params, $avg_score_params); } @@ -746,7 +746,7 @@ class UserDoctorService extends BaseService $total_quantity = OrderEvaluation::getScoreCount($params, $avg_score_params); // 中/差评 - $avg_score_params = [0, 80]; + $avg_score_params = [0, 79]; $bad_quantity = OrderEvaluation::getScoreCount($params, $avg_score_params); } @@ -757,7 +757,7 @@ class UserDoctorService extends BaseService $total_quantity = OrderEvaluation::getScoreCount($params, $avg_score_params); // 好评 - $avg_score_params = [81, 100]; + $avg_score_params = [80, 100]; $good_quantity = OrderEvaluation::getScoreCount($params, $avg_score_params); }