This commit is contained in:
嗯~ committed 2021-06-15 16:03:11 +08:00
1 parent 9ded4f2ff4
commit b8065b1d3f
1 file changed
+1 -5
+1 -5
View File
@@ -268,7 +268,7 @@ class Student extends BaseModel
// 整理数据
array_splice($stuinfo, 0, 4); # 删除标题行
$stuinfo = array_filter($stuinfo, function($q){ ## 过滤姓名、身份证号或班级为空的数据
return $q[1] != null && strlen($q[3]) >=6 && $q[4] != null;
return $q[1] != null && strlen($q[3]) >0 && $q[4] != null;
});
// 获取班级信息
@@ -417,10 +417,6 @@ class Student extends BaseModel
if(!$result){
unset($list[$add_k]);
}
if (date('Y-m-d', strtotime($shengri)) != $shengri) {
unset($list[$add_k]);
}
}
// 获取去掉重复数据的数组