fix(withdraw): 修复提现台账导出PHP8兼容性与页面崩溃问题,统一大余额与导出体验
这个提交包含在:
@@ -188,7 +188,9 @@ class Export
|
||||
'file_name' => $save_file
|
||||
];
|
||||
|
||||
ob_end_clean();
|
||||
if (ob_get_level() > 0) {
|
||||
@ob_end_clean();
|
||||
}
|
||||
header('pragma:public');
|
||||
header("Content-type:application/octet-stream; charset=utf-8; name=" . urlencode($save_file));
|
||||
header("Content-Disposition:attachment; filename=" . urlencode($save_file)); //attachment新窗口打印inline本窗口打印
|
||||
@@ -199,6 +201,13 @@ class Export
|
||||
$writer = new $class_name($spreadsheet);
|
||||
$writer->save($save_file);
|
||||
|
||||
if ($this->config['save_type'] != 'save') {
|
||||
if (function_exists('fastcgi_finish_request')) {
|
||||
fastcgi_finish_request();
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
// 修改为原始内存限制,会影响文件下载,暂时不修改回原来内存
|
||||
|
||||
在新工单中引用
屏蔽一个用户