|
@@ -10,6 +10,7 @@ import com.gis.mapper.FodderMapper;
|
|
|
import com.gis.oss.util.FileAndOssUtil;
|
|
|
import com.gis.service.FodderService;
|
|
|
import com.gis.util.CmdUtils;
|
|
|
+import com.gis.util.FileUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.slf4j.MDC;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -41,8 +42,7 @@ public class FodderServiceImpl implements FodderService {
|
|
|
log.info("处理tour.xml");
|
|
|
String tourPath = configConstant.serverBasePath + code + "/vtour/tour.xml";
|
|
|
log.info("tourPath: {}", tourPath);
|
|
|
- BaseRuntimeException.isTrue(!FileUtil.isFile(tourPath), null, code + "_tour.xml文件不存在");
|
|
|
-
|
|
|
+ BaseRuntimeException.isTrue(!FileUtils.checkFileExtend(tourPath, 10), null, code + "_tour.xml文件不存在");
|
|
|
String tour = FileUtil.readString(tourPath, "utf-8");
|
|
|
tour = StrUtil.subAfter(tour, "</action>", true);
|
|
|
tour = StrUtil.subBefore(tour, "</krpano>", true);
|