|
@@ -114,8 +114,15 @@ public class WebSocketConteoller extends BaseController {
|
|
|
msgAlarmResp.setLineDirStr(msgAlarm.getLineDir() == 1 ? "上行" : "下行");
|
|
|
msgAlarmResp.setAlarmTime(msgAlarm.getAlarmTime() != null ? msgAlarm.getAlarmTime() : new Date());
|
|
|
// 图片
|
|
|
+ List<String> stringList=new ArrayList<>();
|
|
|
if (!StringUtils.isEmptySunhh(msgAlarm.getImageUrls())) {
|
|
|
- msgAlarmResp.setImageUrls(msgAlarm.getImageUrls());
|
|
|
+ for (String imageUrl : msgAlarm.getImageUrls()) {
|
|
|
+ String oldIpAddress = "123.139.243.142";
|
|
|
+ String newIpAddress = "10.48.36.53";
|
|
|
+ String replacedUrl = imageUrl.replace(oldIpAddress, newIpAddress);
|
|
|
+ stringList.add(replacedUrl);
|
|
|
+ }
|
|
|
+ msgAlarmResp.setImageUrls(stringList);
|
|
|
}
|
|
|
if (!StringUtils.isEmptySunhh(msgAlarm.getId())) {
|
|
|
msgAlarmResp.setId(msgAlarm.getId());
|