From 3661ff357f22f2febc46107150f067d08420d2f4 Mon Sep 17 00:00:00 2001 From: augushong Date: Sat, 13 Aug 2022 16:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=BC=E5=87=BA=E5=AF=B9?= =?UTF-8?q?=E6=9E=9A=E4=B8=BE=E5=A4=84=E7=90=86=E7=9A=84=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/tools/ExportTools.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/common/tools/ExportTools.php b/app/common/tools/ExportTools.php index 90a6bac..2edb0de 100644 --- a/app/common/tools/ExportTools.php +++ b/app/common/tools/ExportTools.php @@ -72,8 +72,8 @@ class ExportTools } } else if (array_key_exists($field_key, $select_fields)) { // 需要设置选项 - - $cel = $select_fields[$field_key][$value] ?? ''; + + $cel = $select_fields[$field_key][$value] ?? $value; } else if (in_array($field_key, $date_fields)) { if (empty($value)) { $cel = ''; @@ -103,7 +103,7 @@ class ExportTools ob_clean(); foreach ($runtime_file_list as $runtime_file) { - if(file_exists($runtime_file)){ + if (file_exists($runtime_file)) { unlink($runtime_file); } }