Browse Source

添加mysql 配置校验

topic
lixiaoshuang 5 years ago
parent
commit
744818b6f4
  1. 3
      common/config.go

3
common/config.go

@ -112,9 +112,6 @@ func checkConfig() error {
if Config.Store.User == "" { if Config.Store.User == "" {
return errors.New("Db user not valid ") return errors.New("Db user not valid ")
} }
if Config.Store.Password == "" {
return errors.New("Db password not valid ")
}
} }
return nil return nil
} }

Loading…
Cancel
Save