liuxiaolong
2020-08-11 246ba3b0b0bf0477675d7592c35bd2d1681d44c3
models/db.go
@@ -10,7 +10,7 @@
func InitDb() {
   dbUrl := beego.AppConfig.String("dbUrl")
   rootPath := util.GetAppRootPath()
   dbPath := rootPath + dbUrl
   dbPath := rootPath +"/"+ dbUrl
   orm.RegisterDriver("sqlite", orm.DRSqlite)
   _ = orm.RegisterDataBase("default", "sqlite3", dbPath)
   orm.RegisterModel(new(User), new(UserCar), new(SysUpgrade))