|
|
|
@ -373,7 +373,9 @@ public class SysOssServiceImpl extends ServiceImpl<SysOssDao, SysOssEntity> impl |
|
|
|
|
|
|
|
|
|
|
|
if (oss.getFileType().equals("xlsx") || oss.getFileType().equals("xls") || oss.getFileType().equals("docx") || oss.getFileType().equals("doc")) { |
|
|
|
file = new File(oss.getUrl().split("\\.")[0] + ".pdf"); |
|
|
|
String url = oss.getUrl(); |
|
|
|
int index = url.lastIndexOf("."); |
|
|
|
file = new File(url.substring(0, index) + ".pdf"); |
|
|
|
} else { |
|
|
|
file = new File(oss.getUrl()); |
|
|
|
} |
|
|
|
|