增加身份证号字段字符长度小于6时,过滤掉

This commit is contained in:
cxdbz committed 2019-12-26 19:50:10 +08:00
1 parent 95fbf32a2a
commit 7df14a7086
1 file changed
+2 -1
+2 -1
View File
@@ -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;
}