|
|
|
@ -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();
|
|
|
|
|