From 24624481d59e5e61481d7683cb365ff1d19abee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Thu, 29 Oct 2020 20:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=88=90=E7=BB=A9=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/tools/model/OneStudentChengji.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/tools/model/OneStudentChengji.php b/app/tools/model/OneStudentChengji.php index fc691982..3d98268e 100644 --- a/app/tools/model/OneStudentChengji.php +++ b/app/tools/model/OneStudentChengji.php @@ -947,8 +947,9 @@ class OneStudentChengji extends BaseModel { $zheng = $xk . '成绩上升'; }else{ - $t = key(reset($cha)); - $zheng = $xk . '成绩上升,其中' . $subject_title($t) . '成绩上升最多'; + reset($cha); + $t = key($cha); + $zheng = $xk . '成绩上升,其中' . $subject_title[$t] . '成绩上升最多'; } } @@ -991,8 +992,9 @@ class OneStudentChengji extends BaseModel { $fu = $xk . '成绩下降'; }else{ - $t = key(end($cha)); - $fu = $xk . '成绩下降,其中' . $subject_title($t) . '成绩下降最多'; + end($cha); + $t = key($cha); + $fu = $xk . '成绩下降,其中' . $subject_title[$t] . '成绩下降最多'; } }