diff --git a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java index 33774fd7..9ada6890 100644 --- a/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java +++ b/hw-modules/hw-dms/src/main/java/com/hw/dms/service/impl/DmsBillsFaultInstanceServiceImpl.java @@ -61,7 +61,17 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS List dmsInstanceFiles = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile); for (DmsInstanceFile dmsInstanceFile : dmsInstanceFiles){ - dmsInstanceFile.setUrl(dmsInstanceFile.getFilePath()); + String filePath = dmsInstanceFile.getFilePath(); + if(!filePath.contains("7309")){ + if(filePath.contains("https")){ + filePath.replaceFirst("https","http"); + } + int index= filePath.indexOf("/statics"); + filePath = "http://172.16.12.100:7309"+filePath.substring(index); + }else{ + dmsInstanceFile.setUrl(dmsInstanceFile.getFilePath()); + } + } dmsBillsFaultInstance.setDmsInstanceFiles(dmsInstanceFiles); @@ -470,5 +480,4 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS } } - }