From 2d04eea3d5283c9c8e3227ae04ad083511dafb52 Mon Sep 17 00:00:00 2001 From: xs Date: Thu, 5 Dec 2024 21:45:11 +0800 Subject: [PATCH] =?UTF-8?q?3.5.12=20=E5=9B=BE=E7=89=87=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E5=85=BC=E5=AE=B9pda?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/DmsBillsFaultInstanceServiceImpl.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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 } } - }