From 16a22d9b2c9c58740248d1ddf01639e901786480 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Fri, 28 Apr 2023 08:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=84=E4=BB=B7=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/UserDoctorService.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index 6eb9934..910d4c7 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -743,9 +743,8 @@ class UserDoctorService extends BaseService $order_evaluation = OrderEvaluation::getScorePage($params, $avg_score_params,['*'],$page,$per_page); if (!empty($order_evaluation['data'])) { - foreach ($order_evaluation['data'] as &$item) { + foreach ($order_evaluation['data'] as $key => $item) { $item['avg_score'] = floor($item['avg_score'] * 0.05); - $item['created_at'] = date('Y-m-d H:i',strtotime($item['created_at'])); } }