|
@@ -339,6 +339,7 @@ public class SceneOfflinePackagePushServiceImpl extends ServiceImpl<SceneOffline
|
|
|
dirPath = unzipPath.concat("/wwwroot/scene_view_data");
|
|
|
}
|
|
|
String volumeName = dirPath.concat("/zip/").concat(num).concat(".zip");
|
|
|
+ FileUtil.mkParentDirs(volumeName);
|
|
|
String cmd = "cd " + dirPath + " && zip -r " + volumeName + " " + num + " -s 20M";
|
|
|
log.info("压缩命令:{}", cmd);
|
|
|
RuntimeUtil.exec(cmd);
|
|
@@ -356,7 +357,7 @@ public class SceneOfflinePackagePushServiceImpl extends ServiceImpl<SceneOffline
|
|
|
// String post = HttpUtil.post(push.getDestUrl(), params, 60 * 60 * 1000);
|
|
|
// log.info("场景推送成功,接收端返回结果:{}", post);
|
|
|
//// httpClient.post2(push.getDestUrl(), params, new SuccessCallback(), new ErrorCallback());
|
|
|
-// push.setPushStatus(CommonSuccessStatus.SUCCESS.code());
|
|
|
+ push.setPushStatus(CommonSuccessStatus.SUCCESS.code());
|
|
|
// push.setZipPath(downloadUrl);
|
|
|
}catch (Exception e){
|
|
|
log.error("场景推送失败,num:{}", num, e);
|