修复二级子目录BUG

This commit is contained in:
Minho
2018-03-25 19:33:37 +08:00
parent 3e3aafa77d
commit 970e77f71c
9 changed files with 37 additions and 33 deletions

View File

@@ -24,7 +24,7 @@ func init() {
ctx.ResponseWriter.Write(returnJSON)
} else {
ctx.Redirect(302, beego.URLFor("AccountController.Login") + "?url=" + url.PathEscape(ctx.Request.URL.RequestURI()))
ctx.Redirect(302, conf.URLFor("AccountController.Login") + "?url=" + url.PathEscape(conf.BaseUrl + ctx.Request.URL.RequestURI()))
}
}
}