From 7e498ce1986fb6e47682f03ec7c6ee90a149c7ca Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 6 Jun 2023 19:21:55 +0800 Subject: [PATCH] update --- app/db/dbs_map.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/db/dbs_map.go b/app/db/dbs_map.go index 42203d4..6a8e453 100644 --- a/app/db/dbs_map.go +++ b/app/db/dbs_map.go @@ -52,7 +52,6 @@ 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) @@ -92,8 +91,8 @@ func GetAllDatabaseDev() *[]model.DbMapping { var err error fmt.Println("cfg.Local is: ", cfg.Local) if cfg.Local { // 本地调试 加快速度 - fmt.Println("notice:LOCAL TEST, only masterId:** 99813608 ** available!") - err = Db.Where("deleted_at != ? AND db_master_id=?", 1, 68823769).Find(&m) + fmt.Println("notice:LOCAL TEST, only masterId:** 123456 ** available!") + err = Db.Where("deleted_at != ? AND is_dev = '1' AND db_master_id=?", 1, 123456).Find(&m) } else { err = Db.Where("deleted_at != ? AND is_dev = '1' ", 1).Find(&m) }