修改表格上传教师错误。

This commit is contained in:
巴掌 committed 2021-01-15 20:39:04 +08:00
1 parent dbf63e3c5c
commit dd9af7f47f
2 files changed
+10 -2

No files matched your search

+9 -1
View File
@@ -523,7 +523,15 @@ class Index extends BaseController
$sheet->setCellValue('A' . $i, $i - 3);
$sheet->setCellValue('B' . $i, $md5::encrypt((string)$kh->id, 'dlbz'));
$sheet->setCellValue('C' . $i, $bj->banjiTitle);
$sheet->setCellValue('D' . $i, $kh->cjStudent->xingming);
$sheet->setCellValue('D' . $i, $kh->cjStudent['xingming']);
// if(isset($kh->cjStudent->xingming))
// {
// $sheet->setCellValue('D' . $i, $kh->cjStudent->xingming);
// }else{
// halt($kh->toArray());
// $sheet->setCellValue('D' . $i, '学生已经被删除');
// }
$i ++;
}
}
+1 -1
View File
@@ -410,7 +410,7 @@ class Index extends AdminBase
], 'POST');
// 实例化操作表格类
$teacherinfo = \app\facade\File::readXls(public_path() . 'uploads\\' . $list['url']);
$teacherinfo = \app\facade\File::readXls(public_path() . 'uploads/' . $list['url']);
// 判断表格是否正确
if("教师基本情况表" != $teacherinfo[0][0] || '姓名*' != $teacherinfo[2][1] || '性别*' != $teacherinfo[2][2])