From dd9af7f47f610b58c33300cb1d43fd75cbcce97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Fri, 15 Jan 2021 20:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A8=E6=A0=BC=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E6=95=99=E5=B8=88=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/luru/controller/Index.php | 10 +++++++++- app/teacher/controller/Index.php | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) 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])