LingxinMeng 1 năm trước cách đây
mục cha
commit
dea097b916

+ 1 - 0
simulation-resource-scheduler/src/main/java/com/css/simulation/resource/scheduler/adapter/entity/ProjectStopMessageEntity.java

@@ -3,6 +3,7 @@ package com.css.simulation.resource.scheduler.adapter.entity;
 import lombok.*;
 
 /**
+ * // TODO
  * {
  * "projectId": "sadfasdfs", // 项目 id
  * "algorithmId": "sadfasdfs", // 算法 id

+ 2 - 1
simulation-resource-video/src/main/java/com/css/simulation/resource/video/controller/VideoController.java

@@ -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());
         }
     }

+ 1 - 0
simulation-resource-video/src/main/resources/bootstrap-dev.yaml

@@ -8,6 +8,7 @@ spring:
       discovery:
         server-addr: 36.110.106.156:8848
         namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d
+        ip: 10.14.86.20
       config:
         server-addr: 36.110.106.156:8848
         namespace: 3698bfc2-a612-487a-b2a2-aaad16cd9d9d