update app/student/model/Student.php.

修改上传学生不上传第一个人的问题
This commit is contained in:
巴掌 authored and Gitee committed 2022-04-01 09:12:49 +00:00 Unverified
1 parent 2080597af0
commit 22c3521fa5
1 file changed
+1 -1
+1 -1
View File
@@ -378,7 +378,7 @@ class Student extends BaseModel
// 实例验证
$validate = new \app\student\validate\Student;
// 整理数据
array_splice($stuinfo, 0, 4); # 删除标题行
array_splice($stuinfo, 0, 3); # 删除标题行
$stuinfo = array_filter($stuinfo, function($q){ ## 过滤姓名、身份证号或班级为空的数据
return $q[1] != null && strlen($q[3]) >0 && $q[4] != null;
});