From cff6b7f892b5267a193bbc2f6294e3aaa0cd5c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=93=9C=E5=93=A5?= Date: Thu, 15 Jul 2021 07:47:55 +0800 Subject: [PATCH] 0 --- app/chengji/controller/Bjtongji.php | 4 +--- app/chengji/model/TongjiBj.php | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/chengji/controller/Bjtongji.php b/app/chengji/controller/Bjtongji.php index 2a6f1772..616a3f70 100755 --- a/app/chengji/controller/Bjtongji.php +++ b/app/chengji/controller/Bjtongji.php @@ -283,7 +283,7 @@ class Bjtongji extends AdminBase header('Cache-Control: max-age=0'); $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xlsx'); ini_set("error_reporting","E_ALL & ~E_NOTICE"); - $writer->save('php://output');halt($filename); + $writer->save('php://output'); ob_flush(); flush(); exit(); @@ -601,8 +601,6 @@ class Bjtongji extends AdminBase 'kaoshi' => 1 ,'status' => 1 ]; - // $list['data']['subject_id'] = $sbj->search($src); - // halt($list); // 设置页面标题 $list['set'] = array( 'webtitle'=>'设置任课教师' diff --git a/app/chengji/model/TongjiBj.php b/app/chengji/model/TongjiBj.php index 603d7002..3aa0af07 100755 --- a/app/chengji/model/TongjiBj.php +++ b/app/chengji/model/TongjiBj.php @@ -266,7 +266,6 @@ class TongjiBj extends BaseModel ,'canshilv' => $val->canshilv ]; }else{ - // halt($val->toArray()); $data[$value->banji_id]['quanke'] = [ 'avg' => $val->avg ,'jigelv' => $val->jigelv @@ -437,7 +436,6 @@ class TongjiBj extends BaseModel $bjIds[] = $value->banji_id; } $src['bjIds'] = $bjIds; - // halt($src); $data = $this ->where(function ($query) use($src) {