From 7df14a708655d6650c20cb624fb0e09e1b2ee43f Mon Sep 17 00:00:00 2001 From: cxdbz Date: Thu, 26 Dec 2019 19:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BA=AB=E4=BB=BD=E8=AF=81?= =?UTF-8?q?=E5=8F=B7=E5=AD=97=E6=AE=B5=E5=AD=97=E7=AC=A6=E9=95=BF=E5=BA=A6?= =?UTF-8?q?=E5=B0=8F=E4=BA=8E6=E6=97=B6=EF=BC=8C=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/renshi/controller/Student.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/renshi/controller/Student.php b/app/renshi/controller/Student.php index 67cd80f9..148cf147 100644 --- a/app/renshi/controller/Student.php +++ b/app/renshi/controller/Student.php @@ -436,7 +436,7 @@ class Student extends BaseController $stuinfo = array_filter($stuinfo,function($q){ - return $q[1] != null && $q[2] != null && $q[3] != null; + return $q[1] != null && strlen($q[2]) >=6 && $q[3] != null; }); @@ -492,6 +492,7 @@ class Student extends BaseController ->column('shenfenzhenghao','id'); foreach ($add_temp as $key => $val) { + // 这个地方在大小写不一致的时候容易出错,需要将小写转换成大写 $k = array_search($val, $xlsStuList); $jiaoji[$k]=$val; }