|
@ -1,15 +1,14 @@ |
|
|
package filter |
|
|
package filter |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"github.com/astaxie/beego/logs" |
|
|
|
|
|
"github.com/astaxie/beego/context" |
|
|
"github.com/astaxie/beego/context" |
|
|
"github.com/astaxie/beego" |
|
|
"github.com/astaxie/beego/logs" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
var FilterAdmin = func(ctx *context.Context) { |
|
|
var FilterAdmin = func(ctx *context.Context) { |
|
|
url := ctx.Input.URL() |
|
|
url := ctx.Input.URL() |
|
|
logs.Info(url) |
|
|
logs.Info(url) |
|
|
beego.Informational(url) |
|
|
//beego.Informational(url)
|
|
|
//if url != "/login"{
|
|
|
//if url != "/login"{
|
|
|
// ctx.Redirect(302, "/login")
|
|
|
// ctx.Redirect(302, "/login")
|
|
|
//}
|
|
|
//}
|
|
|