🎨 访问授权重定向
This commit is contained in:
parent
7c11b2ec9b
commit
0a08db69ae
1 changed files with 6 additions and 0 deletions
|
@ -228,5 +228,11 @@ func CheckAuth(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if u := c.Query("url"); "" != u {
|
||||
c.Redirect(302, u)
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
|
||||
c.Next()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue