|
@@ -117,8 +117,10 @@ public class OpsServiceImpl implements OpsService {
|
|
|
String downloadPath;
|
|
|
String basePath = configConstant.serverBasePath;
|
|
|
int size = list.size();
|
|
|
- String firstTourPath = basePath + File.separator + list.get(0) + "/vtour/tour.xml";
|
|
|
+ log.info("场景数量: {}", size);
|
|
|
+ String firstTourPath = File.separator + list.get(0) + "/vtour/tour.xml";
|
|
|
if (size == 1){
|
|
|
+ log.info("firstTourPath:{}", firstTourPath);
|
|
|
downloadPath = firstTourPath;
|
|
|
} else {
|
|
|
// 获取scene标签集合
|
|
@@ -134,7 +136,7 @@ public class OpsServiceImpl implements OpsService {
|
|
|
log.info("标签数量: {}", i );
|
|
|
|
|
|
// 获取第一个xml, 做为基础模板
|
|
|
- String firstXml = handleFirstXml(firstTourPath);
|
|
|
+ String firstXml = handleFirstXml(basePath + firstTourPath);
|
|
|
// 合并
|
|
|
StringBuffer buffer = new StringBuffer();
|
|
|
buffer.append(firstXml).append(" ");
|
|
@@ -147,6 +149,7 @@ public class OpsServiceImpl implements OpsService {
|
|
|
log.info("合并完成,保存路径: {}", savePath);
|
|
|
|
|
|
}
|
|
|
+ log.info("下载地址: {}", downloadPath);
|
|
|
|
|
|
return Result.success(downloadPath);
|
|
|
}
|