Browse Source

update

three
DengBiao 1 year ago
parent
commit
fba3d81e97
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/db/dbs_map.go

+ 2
- 1
app/db/dbs_map.go View File

@@ -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)


Loading…
Cancel
Save