Fix problems modifying personal information,Upgrade route configuration format

This commit is contained in:
zhangwenjian committed 2020-05-25 21:30:29 +08:00
1 parent e07cb22255
commit c0b8199c36
18 files changed
+355 -244

No files matched your search

+1 -5
View File
@@ -30,7 +30,7 @@ func Setup() {
Username = config.DatabaseConfig.Username
Password = config.DatabaseConfig.Password
if DbType != "mysql" && DbType != "sqlite3" {
if DbType != "mysql" {
log.Println("db type unknow")
}
var err error
@@ -44,10 +44,6 @@ func Setup() {
db = new(Mysql)
Eloquent, err = db.Open(DbType, conn)
} else if DbType == "sqlite3" {
db = new(SqlLite)
Eloquent, err = db.Open(DbType, Host)
} else {
panic("db type unknow")
}