feat:完善项目信息

This commit is contained in:
henry
2022-01-06 17:11:57 +08:00
parent 1b0f71735b
commit a92801b1ce
29 changed files with 815 additions and 623 deletions

View File

@ -5,7 +5,6 @@ import (
"SciencesServer/app/service"
"SciencesServer/config"
"SciencesServer/utils"
"fmt"
"github.com/gin-gonic/gin"
"net/http"
)
@ -32,7 +31,6 @@ func NeedLogin(key string, session logic.ISession, skipperURL ...SkipperURL) gin
return
}
token := c.GetHeader(config.APIRequestToken)
fmt.Println(token)
if token == "" {
c.JSON(http.StatusUnauthorized, gin.H{"message": "Token异常"})
@ -46,7 +44,6 @@ func NeedLogin(key string, session logic.ISession, skipperURL ...SkipperURL) gin
c.Abort()
return
}
fmt.Println(utils.AnyToJSON(session))
c.Set(config.TokenForSession, session)
c.Next()
}