|
@@ -57,7 +57,7 @@ public class VideoController {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSS");
|
|
|
String format = sdf.format(new Date());
|
|
|
// 保存文件的文件夹
|
|
|
- String savePath = fileName + "/" + format;
|
|
|
+ String savePath = "/root/disk1/simulation-cloud/esmini/resources/models/" + fileName + "/" + format;
|
|
|
log.info("车辆模型对应osgb地址:" + savePath);
|
|
|
File folder = new File(savePath);
|
|
|
// 判断路径是否存在,不存在则自动创建
|
|
@@ -71,6 +71,7 @@ public class VideoController {
|
|
|
map.put("filePath", filePath);
|
|
|
return new ResponseBodyVO<>(ResponseBodyVO.Response.SUCCESS, map);
|
|
|
} catch (IOException e) {
|
|
|
+ log.error("文件上传失败", e);
|
|
|
return new ResponseBodyVO<>(ResponseBodyVO.Response.SERVER_FAILURE, e.getMessage());
|
|
|
}
|
|
|
}
|