Merge remote-tracking branch 'origin/dev' into test
正在显示
1 个修改的文件
包含
0 行增加
和
2 行删除
@@ -178,14 +178,12 @@ func CheckToken(ctx *context.Context) (result bool) { | @@ -178,14 +178,12 @@ 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") || | 181 | if strings.HasSuffix(ctx.Request.RequestURI, "loginModule") || |
183 | strings.HasSuffix(ctx.Request.RequestURI, "accessToken") || | 182 | strings.HasSuffix(ctx.Request.RequestURI, "accessToken") || |
184 | strings.HasSuffix(ctx.Request.RequestURI, "refreshToken") || | 183 | strings.HasSuffix(ctx.Request.RequestURI, "refreshToken") || |
185 | strings.HasSuffix(ctx.Request.RequestURI, "smsCode") { | 184 | strings.HasSuffix(ctx.Request.RequestURI, "smsCode") { |
186 | return true | 185 | return true |
187 | } | 186 | } |
188 | - } | ||
189 | result = true | 187 | result = true |
190 | defer func() { | 188 | defer func() { |
191 | if msg != nil { | 189 | if msg != nil { |
-
请 注册 或 登录 后发表评论