diff --git a/app/luru/controller/Index.php b/app/luru/controller/Index.php index 00312c9f..f1b4d65d 100755 --- a/app/luru/controller/Index.php +++ b/app/luru/controller/Index.php @@ -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 ++; } } diff --git a/app/teacher/controller/Index.php b/app/teacher/controller/Index.php index 9517d469..ffe65b51 100755 --- a/app/teacher/controller/Index.php +++ b/app/teacher/controller/Index.php @@ -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])