From c345d4cc7a215794d4b7f2ee8bcc3441d23ffed8 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 01 十一月 2019 16:20:19 +0800
Subject: [PATCH] test

---
 extend/config/config.go |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/extend/config/config.go b/extend/config/config.go
index c1a3ff4..4251374 100644
--- a/extend/config/config.go
+++ b/extend/config/config.go
@@ -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.NginxIp+":"+si.NginxPort+"/videosource"
 	}
 }
\ No newline at end of file

--
Gitblit v1.8.0