wuweihao 3 vuotta sitten
vanhempi
commit
8dac7bc499

+ 3 - 0
720yun_fd_consumer/src/main/java/com/gis/service/impl/FodderServiceImpl.java

@@ -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;
     }