diff --git a/app/renshi/controller/Student.php b/app/renshi/controller/Student.php index 8a0fef72..f1eb595a 100644 --- a/app/renshi/controller/Student.php +++ b/app/renshi/controller/Student.php @@ -426,7 +426,7 @@ class Student extends BaseController // 判断表格是否正确 if($stuinfo[0][2] != "序号" && $stuinfo[1][2] != "姓名" && $stuinfo[2][2] != "身份证号") { - $data = array('msg'=>'请使用模板上传','val'=>0,'url'=>null); + $this->error('请使用模板上传','/login/err'); return json($data); } diff --git a/app/renshi/controller/Teacher.php b/app/renshi/controller/Teacher.php index edd6edf9..48fcd4ba 100644 --- a/app/renshi/controller/Teacher.php +++ b/app/renshi/controller/Teacher.php @@ -314,7 +314,7 @@ class Teacher extends BaseController // 判断表格是否正确 if($teacherinfo[0][1] != "教师基本情况表" ) { - $data = array('msg'=>'请使用模板上传','val'=>0,'url'=>null); + $this->error('请使用模板上传','/login/err'); return json($data); }