文件后缀大写
This commit is contained in:
@@ -294,7 +294,7 @@ public class AttFileEOController {
|
||||
String suffix=fileName.substring(fileName.lastIndexOf(".")+1);
|
||||
//只能在pdf中添加水印,
|
||||
//非pdf文件直接下载原文件
|
||||
if (suffix.equals("pdf")){
|
||||
if (suffix.equals("pdf")||suffix.equals("PDF")){
|
||||
downloadFilePath=waterFilePath;
|
||||
}else {
|
||||
downloadFilePath=oldFilePath;
|
||||
|
||||
Reference in New Issue
Block a user