xiewj 1 year ago
parent
commit
5ba776dac1

+ 1 - 1
720yun_fd_consumer/gis_consumer/src/main/java/com/gis/service/impl/FodderServiceImpl.java

@@ -43,7 +43,7 @@ public class FodderServiceImpl implements FodderService {
         String tourPath = configConstant.serverBasePath + code + "/vtour/tour.xml";
         log.info("tourPath: {}", tourPath);
         BaseRuntimeException.isTrue(!FileUtils.checkFileExtend(tourPath, 10), null, code + "_tour.xml文件不存在");
-        String tour = FileUtil.readString(tourPath, "utf-8");
+        String tour = FileUtil.readUtf8String(tourPath);
         tour = StrUtil.subAfter(tour, "</action>", true);
         tour = StrUtil.subBefore(tour, "</krpano>", true);
         String trim = StrUtil.trim(tour);