648540858
2023-04-04 b4048fbe80dba8e7756ae557a15ab60b4f80a44b
src/main/java/com/genersoft/iot/vmp/conf/SipConfig.java
@@ -4,7 +4,6 @@
import org.junit.jupiter.api.Order;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.util.ObjectUtils;
@Component
@ConfigurationProperties(prefix = "sip", ignoreInvalidFields = true)
@@ -12,6 +11,8 @@
public class SipConfig {
   private String ip;
   private String showIp;
   private Integer port;
@@ -96,9 +97,14 @@
      this.alarm = alarm;
   }
   public void getLocalIp(String deviceLocalIp) {
      if (ObjectUtils.isEmpty(deviceLocalIp)) {
   public String getShowIp() {
      if (this.showIp == null) {
         return this.ip;
      }
      return showIp;
   }
   public void setShowIp(String showIp) {
      this.showIp = showIp;
   }
}