|
|
@@ -369,13 +369,13 @@ public class SceneOfflinePackagePushServiceImpl extends ServiceImpl<SceneOffline
|
|
|
params.put("zipType", zipType);
|
|
|
params.put("file", FileUtil.file(zipDir.concat(file)));
|
|
|
log.info("开发发送第{}个压缩包", index);
|
|
|
+ log.info("-----------开始发送压缩包请求,id:{}, num:{}, zipType:{}, index:{}", id, num, zipType, index);
|
|
|
String post = HttpUtil.post(scenePushBean.getDestUrl() + "/historyrical/scene/deploy", params, 60 * 60 * 1000);
|
|
|
- log.info("-----------postResult:{}", post);
|
|
|
+ log.info("-----------结束发送压缩包请求,id:{}, num:{}, zipType:{}, index:{}, post:{}", id, num, zipType, index, post);
|
|
|
ResultData deployResult = JSON.parseObject(post,ResultData.class);
|
|
|
if(deployResult.getCode() != 0){
|
|
|
throw new RuntimeException("部署端接收文件失败");
|
|
|
}
|
|
|
- log.info("第{}个场景推送成功,接收端返回结果:{}", index, post);
|
|
|
++index;
|
|
|
}
|
|
|
|
|
|
@@ -393,13 +393,13 @@ public class SceneOfflinePackagePushServiceImpl extends ServiceImpl<SceneOffline
|
|
|
params.put("version", scenePushBean.getVersion());
|
|
|
params.put("calcTime", DateExtUtil.format(scenePlusExt.getAlgorithmTime(), DateExtUtil.dateStyle8));
|
|
|
params.put("shootCount", scenePlusExt.getShootCount());
|
|
|
+ log.info("-----------开始发送部署请求,id:{}, num:{}, zipType:{}, fileList:{}", id, num, zipType, fileList.size());
|
|
|
String post = HttpUtil.post(scenePushBean.getDestUrl() + "/historyrical/scene/deploy", params, 60 * 60 * 1000);
|
|
|
- log.info("-----------postResult:{}", post);
|
|
|
+ log.info("-----------结束发送部署请求,id:{}, num:{}, zipType:{}, fileList:{}, post:{}", id, num, zipType, fileList.size(), post);
|
|
|
ResultData deployResult = JSON.parseObject(post,ResultData.class);
|
|
|
if(deployResult.getCode() != 0){
|
|
|
throw new RuntimeException("部署端接收部署指令失败");
|
|
|
}
|
|
|
- log.info("场景推送成功,接收端返回结果:{}", post);
|
|
|
}finally {
|
|
|
log.info("删除原始压缩包,zipPath:{}", zipPath);
|
|
|
FileUtil.del(zipPath);
|