tcp server 用于给andriod 客户端定时发送消息
fix
liuxiaolong
2019-11-01 a7602018176ee34e055a2877c1b54bd0c950440d
extend/config/config.go
@@ -11,8 +11,8 @@
   ServerId string `mapstructure: "serverId"`
   ServerIp string `mapstructure: "serverIp"`
   VideoPort string   `mapstructure: "videoPort"`
   NginxIp string  `mapstructure: "ngxIp"`
   NginxPort string   `mapstructure: "ngxPort"`
   NgxIp string  `mapstructure: "ngxIp"`
   NgxPort string   `mapstructure: "ngxPort"`
}
var serverList = &server{}
@@ -30,7 +30,8 @@
   }
   viper.UnmarshalKey("server", serverList)
   for _,s :=range *serverList {
      ServerMap[s.ServerId] = "http://"+s.ServerIp+":"+s.VideoPort+"/getRecordVideoPath"
      NgxMap[s.ServerId] = "http://"+s.NginxIp+":"+s.NginxPort+"/videosource"
      si := s
      ServerMap[si.ServerId] = "http://"+si.ServerIp+":"+si.VideoPort+"/getRecordVideoPath"
      NgxMap[si.ServerId] = "http://"+si.NgxIp+":"+si.NgxPort+"/videosource"
   }
}