图片地址兼容pda
master
xs 2 months ago
parent c105ed07df
commit 2d04eea3d5

@ -61,7 +61,17 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS
List<DmsInstanceFile> 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
}
}
}

Loading…
Cancel
Save