From 38f6ad1d07fac36879ec5ce45fc5e39d20b335d2 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 26 十一月 2019 10:48:48 +0800 Subject: [PATCH] rabbitmq add user and pass basic:basic --- extend/config/config.go | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/extend/config/config.go b/extend/config/config.go index c1a3ff4..30f714a 100644 --- a/extend/config/config.go +++ b/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" } } \ No newline at end of file -- Gitblit v1.8.0