Browse Source

update

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

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

@@ -52,7 +52,6 @@ func InitMapDbs(c *cfg.DBCfg, prd bool) {
dbCfg.User = c.User dbCfg.User = c.User
dbCfg.Psw = c.Psw dbCfg.Psw = c.Psw
} }
dbCfg.Host = "zhios123.rwlb.rds.aliyuncs.com:3306"
e, err = NewDB(&dbCfg) e, err = NewDB(&dbCfg)
if err != nil || e == nil { 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) 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