From c27e345edc6a92f485c1ef722ccaaa8ec6cbf5bf Mon Sep 17 00:00:00 2001 From: che_shuai <che_shuai@massclouds> Date: 星期四, 13 七月 2023 10:22:42 +0800 Subject: [PATCH] 修复多级级联平台平台时,上级平台无法获取设备录像列表问题。问题详见 https://github.com/648540858/wvp-GB28181-pro/issues/914 --- src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java b/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java index ff9008e..6a6c54f 100644 --- a/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java +++ b/src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java @@ -1,14 +1,18 @@ package com.genersoft.iot.vmp.conf; +import org.springframework.core.annotation.Order; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @Component @ConfigurationProperties(prefix = "sip", ignoreInvalidFields = true) +@Order(0) public class SipConfig { private String ip; + + private String showIp; private Integer port; @@ -92,4 +96,15 @@ public void setAlarm(boolean alarm) { this.alarm = alarm; } + + public String getShowIp() { + if (this.showIp == null) { + return this.ip; + } + return showIp; + } + + public void setShowIp(String showIp) { + this.showIp = showIp; + } } -- Gitblit v1.8.0