소스 검색

海康-火情事件

lyq 4 달 전
부모
커밋
b4d07dc6b3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/sooka/sponest/event/centereventteventcatalogue/service/impl/AlarmEventServiceImpl.java

+ 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);