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))