mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 19:12:48 +08:00
优化导出对枚举处理的兼容性
This commit is contained in:
@@ -73,7 +73,7 @@ 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user