diff --git a/Application/Admin/Controller/ExportController.class.php b/Application/Admin/Controller/ExportController.class.php index cc38b611b..a68b8924e 100644 --- a/Application/Admin/Controller/ExportController.class.php +++ b/Application/Admin/Controller/ExportController.class.php @@ -532,15 +532,17 @@ class ExportController extends Controller } unset($xlsData[$k]['age_status']); unset($xlsData[$k]['register_way']); + mb_convert_variables('GBK', 'UTF-8', $v); + fputcsv($fp, $v); } } - foreach($xlsData as $value) { - mb_convert_variables('GBK', 'UTF-8', $value); - fputcsv($fp, $value); - $lastId = $value['id']; - } +// foreach($xlsData as $value) { +// mb_convert_variables('GBK', 'UTF-8', $value); +// fputcsv($fp, $value); +// $lastId = $value['id']; +// } unset($xlsData);//释放变量的内存 //刷新输出缓冲到浏览器 ob_flush();