parse token

This commit is contained in:
Gordon 2023-03-15 16:39:11 +08:00
parent b8ef0b3513
commit 460cf8d8ba

View File

@ -75,7 +75,7 @@ func GinParseToken(rdb redis.UniversalClient) gin.HandlerFunc {
case http.MethodPost:
token := c.Request.Header.Get(constant.Token)
if token == "" {
apiresp.GinError(c, errs.ErrArgs.Wrap())
apiresp.GinError(c, errs.ErrArgs.Wrap("header must have token"))
c.Abort()
return
}