优化导出对枚举处理的兼容性

This commit is contained in:
2022-08-13 16:33:34 +08:00
parent 54a52e68d8
commit 3661ff357f

View File

@@ -72,8 +72,8 @@ class ExportTools
} }
} else if (array_key_exists($field_key, $select_fields)) { } 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)) { } else if (in_array($field_key, $date_fields)) {
if (empty($value)) { if (empty($value)) {
$cel = ''; $cel = '';
@@ -103,7 +103,7 @@ class ExportTools
ob_clean(); ob_clean();
foreach ($runtime_file_list as $runtime_file) { foreach ($runtime_file_list as $runtime_file) {
if(file_exists($runtime_file)){ if (file_exists($runtime_file)) {
unlink($runtime_file); unlink($runtime_file);
} }
} }