作者 yangfu

loginModule 去掉配置

@@ -178,13 +178,11 @@ func CheckToken(ctx *context.Context) (result bool) { @@ -178,13 +178,11 @@ func CheckToken(ctx *context.Context) (result bool) {
178 msg *protocol.ResponseMessage 178 msg *protocol.ResponseMessage
179 ) 179 )
180 token := ctx.Input.Header("x-mmm-accesstoken") 180 token := ctx.Input.Header("x-mmm-accesstoken")
181 - if token == "" {  
182 - if strings.HasSuffix(ctx.Request.RequestURI, "loginModule") ||  
183 - strings.HasSuffix(ctx.Request.RequestURI, "accessToken") ||  
184 - strings.HasSuffix(ctx.Request.RequestURI, "refreshToken") ||  
185 - strings.HasSuffix(ctx.Request.RequestURI, "smsCode") {  
186 - return true  
187 - } 181 + if strings.HasSuffix(ctx.Request.RequestURI, "loginModule") ||
  182 + strings.HasSuffix(ctx.Request.RequestURI, "accessToken") ||
  183 + strings.HasSuffix(ctx.Request.RequestURI, "refreshToken") ||
  184 + strings.HasSuffix(ctx.Request.RequestURI, "smsCode") {
  185 + return true
188 } 186 }
189 result = true 187 result = true
190 defer func() { 188 defer func() {