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)