|
@@ -107,7 +107,7 @@ public class AlarmEventServiceImpl implements AlarmEventService {
|
|
if (StringUtils.isNotBlank(picObj.getString("imageUrl"))) {
|
|
if (StringUtils.isNotBlank(picObj.getString("imageUrl"))) {
|
|
CenterdataTAttach tAttach = new CenterdataTAttach();
|
|
CenterdataTAttach tAttach = new CenterdataTAttach();
|
|
tAttach.setBusId(logId);
|
|
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.setBusIndx(BUS_INDEX_1);
|
|
tAttach.setBusSource("HIK_1");
|
|
tAttach.setBusSource("HIK_1");
|
|
tAttach.setFileType(FILE_TYPE_1);
|
|
tAttach.setFileType(FILE_TYPE_1);
|
|
@@ -116,7 +116,7 @@ public class AlarmEventServiceImpl implements AlarmEventService {
|
|
if (StringUtils.isNotBlank(picObj.getString("visiblePicUrl"))) {
|
|
if (StringUtils.isNotBlank(picObj.getString("visiblePicUrl"))) {
|
|
CenterdataTAttach tAttach = new CenterdataTAttach();
|
|
CenterdataTAttach tAttach = new CenterdataTAttach();
|
|
tAttach.setBusId(logId);
|
|
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.setBusIndx(BUS_INDEX_1);
|
|
tAttach.setBusSource("HIK_1");
|
|
tAttach.setBusSource("HIK_1");
|
|
tAttach.setFileType(FILE_TYPE_1);
|
|
tAttach.setFileType(FILE_TYPE_1);
|