资料下载bug
This commit is contained in:
+3
-1
@@ -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,即告诉客户端所发送的数据属于什么类型
|
||||
|
||||
Reference in New Issue
Block a user