debug add
continuous-integration/drone/push Build is passing Details

main
kelvin 3 years ago
parent 8b19f53f8b
commit d42f27b249

@ -460,7 +460,9 @@ func checkKeyMid() gin.HandlerFunc {
if auth == "" { if auth == "" {
c.AbortWithStatusJSON(401, gin.H{"code": 40001}) c.AbortWithStatusJSON(401, gin.H{"code": 40001})
} else { } else {
log.Printf("auth check start")
key := strings.Trim(auth, "Bearer ") key := strings.Trim(auth, "Bearer ")
log.Printf("key: %v", key)
msg, err := checkKeyAndTimeCount(key) msg, err := checkKeyAndTimeCount(key)
if err != nil { if err != nil {
c.AbortWithStatusJSON(msg, gin.H{"code": err.Error()}) c.AbortWithStatusJSON(msg, gin.H{"code": err.Error()})

Loading…
Cancel
Save