|
@@ -98,7 +98,8 @@ public class SceneInterceptor implements HandlerInterceptor {
|
|
if(file !=null && file.getSize() >0){
|
|
if(file !=null && file.getSize() >0){
|
|
String fileName = file.getOriginalFilename();
|
|
String fileName = file.getOriginalFilename();
|
|
assert fileName != null;
|
|
assert fileName != null;
|
|
- String newFilePath = String.format(hotLocalPath,map.get("num")) + "/"+fileName ;
|
|
|
|
|
|
+ String num = map.get("num") == null ?"test":map.get("num");
|
|
|
|
+ String newFilePath = String.format(hotLocalPath,num) + "/"+fileName ;
|
|
|
|
|
|
File newFile = new File(newFilePath);
|
|
File newFile = new File(newFilePath);
|
|
file.transferTo(newFile);
|
|
file.transferTo(newFile);
|