|
@@ -84,8 +84,8 @@ public class FileServiceImpl extends IBaseServiceImpl<FileEntity, Long> implemen
|
|
|
if (!fileUtils.checkFile(file)) {
|
|
|
throw new BaseRuntimeException("非法文件, 请重新上传");
|
|
|
}
|
|
|
- String timeName = getTimeName(file);
|
|
|
- dir = dir + "/" + timeName;
|
|
|
+ String CommentVoName = getTimeName(file);
|
|
|
+ dir = dir + "/" + CommentVoName;
|
|
|
String savePath = configConstant.serverBasePath + dir ;
|
|
|
try {
|
|
|
FileUtil.writeFromStream(file.getInputStream(), savePath);
|