From fba3d81e971d1bf476e93dbb089ece071e9fc73b Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 23 May 2023 18:02:59 +0800 Subject: [PATCH] update --- app/db/dbs_map.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/db/dbs_map.go b/app/db/dbs_map.go index 6a8e453..0d12a24 100644 --- a/app/db/dbs_map.go +++ b/app/db/dbs_map.go @@ -25,7 +25,7 @@ func InitMapDbs(c *cfg.DBCfg, prd bool) { if prd { tables = GetAllDatabasePrd() //debug 获取生产 } else { - tables = GetAllDatabaseDev() //debug 获取开发 + tables = GetAllDatabasePrd() //debug 获取开发 } if tables == nil { @@ -52,6 +52,7 @@ func InitMapDbs(c *cfg.DBCfg, prd bool) { dbCfg.User = c.User dbCfg.Psw = c.Psw } + dbCfg.Host = "zhios123.rwlb.rds.aliyuncs.com:3306" e, err = NewDB(&dbCfg) if err != nil || e == nil { logx.Warnf("db engine can't create, please check config, params[host:%s, user:%s, psw: %s, name: %s], err: %v", dbCfg.Host, dbCfg.User, dbCfg.Psw, dbCfg.Name, err)