Parcourir la source

fix:mongo地址兼容

Roc il y a 9 mois
Parent
commit
3f3666baff
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      core/run_server.go

+ 1 - 1
core/run_server.go

@@ -17,7 +17,7 @@ func RunServe() {
 		init_serve.Redis()
 	}
 
-	if global.CONFIG.Mongo.Host != `` {
+	if global.CONFIG.Mongo.Url != `` {
 		//初始化redis
 		init_serve.InitMongo()
 	}