DengBiao 1 anno fa
parent
commit
fba3d81e97
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      app/db/dbs_map.go

+ 2
- 1
app/db/dbs_map.go Vedi 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)


Caricamento…
Annulla
Salva