Pārlūkot izejas kodu

海康-火情事件

lyq 2 mēneši atpakaļ
vecāks
revīzija
b4d07dc6b3

+ 2 - 2
src/main/java/com/sooka/sponest/event/centereventteventcatalogue/service/impl/AlarmEventServiceImpl.java

@@ -107,7 +107,7 @@ public class AlarmEventServiceImpl implements AlarmEventService {
         if (StringUtils.isNotBlank(picObj.getString("imageUrl"))) {
             CenterdataTAttach tAttach = new CenterdataTAttach();
             tAttach.setBusId(logId);
-            tAttach.setAttachPath(picObj.getString("imageUrl"));
+            tAttach.setAttachPath(picObj.getString("imageUrl").substring(picObj.getString("imageUrl").indexOf("/pic?")));
             tAttach.setBusIndx(BUS_INDEX_1);
             tAttach.setBusSource("HIK_1");
             tAttach.setFileType(FILE_TYPE_1);
@@ -116,7 +116,7 @@ public class AlarmEventServiceImpl implements AlarmEventService {
         if (StringUtils.isNotBlank(picObj.getString("visiblePicUrl"))) {
             CenterdataTAttach tAttach = new CenterdataTAttach();
             tAttach.setBusId(logId);
-            tAttach.setAttachPath(picObj.getString("visiblePicUrl"));
+            tAttach.setAttachPath(picObj.getString("visiblePicUrl").substring(picObj.getString("visiblePicUrl").indexOf("/pic?")));
             tAttach.setBusIndx(BUS_INDEX_1);
             tAttach.setBusSource("HIK_1");
             tAttach.setFileType(FILE_TYPE_1);