|
@ -14,7 +14,7 @@ func init() { |
|
|
beego.InsertFilter("/*", beego.FinishRouter, filter.FilterLoginInfo) |
|
|
beego.InsertFilter("/*", beego.FinishRouter, filter.FilterLoginInfo) |
|
|
} |
|
|
} |
|
|
func main() { |
|
|
func main() { |
|
|
orm.Debug = true |
|
|
orm.Debug = false |
|
|
orm.RunSyncdb("default", false, true) |
|
|
orm.RunSyncdb("default", false, true) |
|
|
beego.AddFuncMap("NAdd",NAdd) |
|
|
beego.AddFuncMap("NAdd",NAdd) |
|
|
beego.Run() |
|
|
beego.Run() |
|
|