Constants部分常量添加final修饰

This commit is contained in:
RuoYi
2019-04-12 19:10:52 +08:00
parent 5d84c7fcb0
commit 2ad741c4e8
3 changed files with 6 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ public class CommonController
{
if (!FileUtils.isValidFilename(fileName))
{
throw new Exception(StringUtils.format(" 文件名称({})非法,不允许下载。 ", fileName));
throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName));
}
String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);
String filePath = Global.getDownloadPath() + fileName;