Browse Source

fix:mongo地址兼容

Roc 9 months ago
parent
commit
3f3666baff
1 changed files with 1 additions and 1 deletions
  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()
 	}