修改配置文件

This commit is contained in:
jhc 2023-04-13 14:07:50 +08:00
parent 69ae5723f6
commit cedc227235
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -37,7 +37,7 @@ func Init(confPath string) {
LoadMysqlData(file) LoadMysqlData(file)
//MySQL数据库 //MySQL数据库
path := strings.Join([]string{DbUser, ":", DbPassWord, "@tcp(", DbHost, ":", DbPort, ")/", DbName, "?charset=utf8&parseTime=true"}, "") path := strings.Join([]string{DbUser, ":", DbPassWord, "@tcp(", DbHost, ":", DbPort, ")/", DbName, "?charset=utf8&parseTime=true&loc=Local"}, "")
//连接数据库 //连接数据库
Database(path) Database(path)
//migration() //迁移表 按需打开 //migration() //迁移表 按需打开