增加删除学科查询与恢复与学科列验证

This commit is contained in:
东宝书记 committed 2021-05-09 10:50:56 +08:00
1 parent 6b39fbeafa
commit 023bc596cb
19 files changed
+231 -57

No files matched your search

+1 -1
View File
@@ -234,7 +234,7 @@ class Student extends BaseModel
public function tongBu($stuinfo, $school_id)
{
// 整理数据
array_splice($stuinfo, 0, 3); # 删除标题行
array_splice($stuinfo, 0, 4); # 删除标题行
$stuinfo = array_filter($stuinfo, function($q){ ## 过滤姓名、身份证号或班级为空的数据
return $q[1] != null && strlen($q[2]) >=6 && $q[3] != null;
});