修改学生模板导入错误

This commit is contained in:
巴掌 committed 2020-09-10 19:39:36 +08:00
1 parent 08717312cf
commit bbd71f2a47
1 file changed
+3 -2
+3 -2
View File
@@ -251,8 +251,9 @@ class Banji extends BaseModel
$njlist = $this->gradeName('str', time());
$bjlist = $this->className();
$nj = substr($str, 0, 9);
$bj = substr($str, 9, strlen($str) - 9);
$find = strpos($str,"级") + 3;
$nj = substr($str, 0, $find);
$bj = substr($str, $find, strlen($str) - $find);
$nj = array_search($nj, $njlist);
$bj = array_search($bj, $bjlist);