Merge branch 'xjjdev'

This commit is contained in:
徐俊杰 2023-03-31 14:05:10 +08:00
commit f500dd922b

View File

@ -39,7 +39,7 @@ func Init(confPath string) {
LoadMysqlData(file) LoadMysqlData(file)
//MySQL数据库 //MySQL数据库
path := strings.Join([]string{DbUser, ":", DbPassWord, "@tcp(", DbHost, ":", DbPort, ")/", DbLogName, "?charset=utf8&parseTime=true&loc=Asia/Shanghai"}, "") path := strings.Join([]string{DbUser, ":", DbPassWord, "@tcp(", DbHost, ":", DbPort, ")/", DbLogName, "?charset=utf8&parseTime=true&loc=Asia%2FShanghai"}, "")
//连接数据库 //连接数据库
Database(path) Database(path)
//迁移表 如果需要就打开使用 //迁移表 如果需要就打开使用