新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit 6130c7fb authored by kunkkawu's avatar kunkkawu

fix db init

No related merge requests found
......@@ -36,7 +36,7 @@ type ServiceContext struct {
// NewServiceContext 实例化NewServiceContext
func NewServiceContext(c config.Config) *ServiceContext {
gormDb, err := gorm_common.InitGorm(c.MysqlDNS)
gormDb, err := gorm_common.InitGorm(c.DBConf)
if err != nil {
panic("连接mysql数据库失败, error=" + err.Error())
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment