fix some bug and standardize the code (#2)

This commit is contained in:
Li4n0
2021-04-22 16:40:22 +08:00
committed by GitHub
parent 960b2ab5ea
commit 72c6150517
10 changed files with 45 additions and 55 deletions
-1
View File
@@ -26,7 +26,6 @@ func (revsuit *Revsuit) registerPlatformRouter() {
if !(c.Request.Header.Get("Token") == revsuit.http.Token || err == nil && cookieToken.Value == revsuit.http.Token) {
c.Abort()
c.Status(403)
return
}
})
revsuit.http.ApiGroup = api