资料下载bug

This commit is contained in:
zhangqinlin
2021-09-13 15:04:18 +08:00
parent dd69893395
commit ca01495f7e
@@ -92,7 +92,9 @@ public class PayFileDownloadRecordController extends JeroController<PayFileDownl
HttpServletResponse response = requestAttributes.getResponse();
OSSFile byId = iossFileService.getById(fileid);
String fileName = byId.getFileName();
String url = byId.getUrl();
int i = url.indexOf("/");
String fileName = url.substring(i+1);
// 设置信息给客户端不解析
String type = new MimetypesFileTypeMap().getContentType(fileName);
// 设置contenttype,即告诉客户端所发送的数据属于什么类型