|
@@ -10,7 +10,7 @@ import com.fdkankan.common.util.ComputerUtil;
|
|
import com.fdkankan.common.util.CreateObjUtil;
|
|
import com.fdkankan.common.util.CreateObjUtil;
|
|
import com.fdkankan.common.util.FileUtils;
|
|
import com.fdkankan.common.util.FileUtils;
|
|
import com.fdkankan.common.util.SceneUtil;
|
|
import com.fdkankan.common.util.SceneUtil;
|
|
-import com.fdkankan.fyun.oss.UploadToOssUtil;
|
|
|
|
|
|
+import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
import com.fdkankan.modeling.bean.BuildSceneResultBean;
|
|
import com.fdkankan.modeling.bean.BuildSceneResultBean;
|
|
import com.fdkankan.modeling.constants.SysConstants;
|
|
import com.fdkankan.modeling.constants.SysConstants;
|
|
import com.fdkankan.modeling.entity.BuildLog;
|
|
import com.fdkankan.modeling.entity.BuildLog;
|
|
@@ -76,7 +76,7 @@ public class RabbitMqListener {
|
|
private String prefixAli;
|
|
private String prefixAli;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- private UploadToOssUtil uploadToOssUtil;
|
|
|
|
|
|
+ private FYunFileServiceInterface fYunFileService;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private RabbitMqProducer rabbitMqProducer;
|
|
private RabbitMqProducer rabbitMqProducer;
|
|
@@ -289,7 +289,7 @@ public class RabbitMqListener {
|
|
videoVersion = StrUtil.isEmpty(videoVersionStr) ? null : Integer.parseInt(videoVersionStr);
|
|
videoVersion = StrUtil.isEmpty(videoVersionStr) ? null : Integer.parseInt(videoVersionStr);
|
|
|
|
|
|
//计算成功 激光转台相机 同步 请求
|
|
//计算成功 激光转台相机 同步 请求
|
|
- this.jgSynch(message);
|
|
|
|
|
|
+ this.syncLaserSystem(message);
|
|
}
|
|
}
|
|
|
|
|
|
buildSceneResult.setFileId(fileId);
|
|
buildSceneResult.setFileId(fileId);
|
|
@@ -409,20 +409,20 @@ public class RabbitMqListener {
|
|
String buildLogPath = String.format(UploadFilePath.BUILD_LOG_PATH, num);
|
|
String buildLogPath = String.format(UploadFilePath.BUILD_LOG_PATH, num);
|
|
|
|
|
|
//todo 待删除old_path
|
|
//todo 待删除old_path
|
|
- uploadToOssUtil.upload(ConstantFilePath.SCENE_PATH + "data/data" + num + File.separator + "status.json",
|
|
|
|
|
|
+ fYunFileService.uploadFile(ConstantFilePath.SCENE_PATH + "data/data" + num + File.separator + "status.json",
|
|
"data/data" + num + File.separator + "status.json");
|
|
"data/data" + num + File.separator + "status.json");
|
|
|
|
|
|
- uploadToOssUtil.upload(ConstantFilePath.SCENE_PATH + "data/data" + num + File.separator + "status.json",
|
|
|
|
|
|
+ fYunFileService.uploadFile(ConstantFilePath.SCENE_PATH + "data/data" + num + File.separator + "status.json",
|
|
dataPath + "status.json");
|
|
dataPath + "status.json");
|
|
|
|
|
|
- uploadToOssUtil.upload(dataSource + File.separator + "console.log", buildLogPath + "console.log");
|
|
|
|
|
|
+ fYunFileService.uploadFile(dataSource + File.separator + "console.log", buildLogPath + "console.log");
|
|
|
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
log.error("上传日志失败!", e);
|
|
log.error("上传日志失败!", e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- private void jgSynch(BuildSceneCallMessage message){
|
|
|
|
|
|
+ private void syncLaserSystem(BuildSceneCallMessage message){
|
|
log.info("激光转台相机 同步 请求 ");
|
|
log.info("激光转台相机 同步 请求 ");
|
|
if(Integer.parseInt(message.getCameraType()) != 14)
|
|
if(Integer.parseInt(message.getCameraType()) != 14)
|
|
return;
|
|
return;
|
|
@@ -475,8 +475,7 @@ public class RabbitMqListener {
|
|
|
|
|
|
url = url.replace("{sceneCode}",message.getSceneNum());
|
|
url = url.replace("{sceneCode}",message.getSceneNum());
|
|
log.info("激光转台相机 同步 :" + url);
|
|
log.info("激光转台相机 同步 :" + url);
|
|
- JSONObject hotListJson =
|
|
|
|
- JSONObject.parseObject(restTemplate.getForObject(url,String.class));
|
|
|
|
|
|
+ JSONObject hotListJson = JSONObject.parseObject(restTemplate.getForObject(url,String.class));
|
|
log.info("激光转台相机 同步结束 :" + hotListJson);
|
|
log.info("激光转台相机 同步结束 :" + hotListJson);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
log.error("激光转台相机同步失败", e);
|
|
log.error("激光转台相机同步失败", e);
|