|
@@ -21,6 +21,7 @@ public class FodderServiceImpl implements FodderService {
|
|
|
|
|
|
@Override
|
|
|
public String getTourXmlScene(String code) {
|
|
|
+ log.info("处理tour.xml");
|
|
|
String tourPath = configConstant.serverBasePath + code + "/vtour/tour.xml";
|
|
|
BaseRuntimeException.isTrue(FileUtil.isFile(tourPath), null, code + "_tour.xml文件不存在");
|
|
|
|
|
@@ -28,6 +29,8 @@ public class FodderServiceImpl implements FodderService {
|
|
|
tour = StrUtil.subAfter(tour, "</action>", true);
|
|
|
tour = StrUtil.subBefore(tour, "</krpano>", true);
|
|
|
String trim = StrUtil.trim(tour);
|
|
|
+ log.info("trim: {}", trim);
|
|
|
+ BaseRuntimeException.isTrue(StrUtil.isAllBlank(trim), null, code + "_tour.xml文件不存在");
|
|
|
|
|
|
return trim;
|
|
|
}
|