正在显示
1 个修改的文件
包含
18 行增加
和
17 行删除
@@ -98,23 +98,24 @@ func CheckAccessToken2() web.FilterFunc { | @@ -98,23 +98,24 @@ func CheckAccessToken2() web.FilterFunc { | ||
98 | return func(ctx *context.Context) { | 98 | return func(ctx *context.Context) { |
99 | tokenStr := ctx.Input.Header("x-mmm-accesstoken") | 99 | tokenStr := ctx.Input.Header("x-mmm-accesstoken") |
100 | filterMap := map[string]string{ | 100 | filterMap := map[string]string{ |
101 | - "/v1/auth/login/pwd": "", | ||
102 | - "/v1/auth/login/sms": "", | ||
103 | - "/v1/auth/login/qrcode": "", | ||
104 | - "/v1/auth/org-switch": "", | ||
105 | - "/v1/user/company-orgs": "", | ||
106 | - "/v1/auth/captcha-init": "", | ||
107 | - "/v1/auth/qrcode-init": "", | ||
108 | - "/v1/auth/sms-code": "", | ||
109 | - "/v1/auth/check-sms-code": "", | ||
110 | - "/v1/auth/company-sign-up": "", | ||
111 | - "/v1/auth/reset-password": "", | ||
112 | - "/v1/auth/refresh-token": "", | ||
113 | - "/v1/app/cooperation-projects/person/search": "", | ||
114 | - "/v1/common/dictionary/search": "", | ||
115 | - "/v1/common/app-sharing": "", | ||
116 | - "/v1/user/cooperation-org": "", | ||
117 | - "/v1/app/cooperation-projects/person/shared-info": "", //共创项目详情 - 未登录可以查看 | 101 | + "/v1/auth/login/pwd": "", |
102 | + "/v1/auth/login/sms": "", | ||
103 | + "/v1/auth/login/qrcode": "", | ||
104 | + "/v1/auth/org-switch": "", | ||
105 | + "/v1/user/company-orgs": "", | ||
106 | + "/v1/auth/captcha-init": "", | ||
107 | + "/v1/auth/qrcode-init": "", | ||
108 | + "/v1/auth/sms-code": "", | ||
109 | + "/v1/auth/check-sms-code": "", | ||
110 | + "/v1/auth/company-sign-up": "", | ||
111 | + "/v1/auth/reset-password": "", | ||
112 | + "/v1/auth/refresh-token": "", | ||
113 | + "/v1/app/cooperation-projects/person/search": "", | ||
114 | + "/v1/common/dictionary/search": "", | ||
115 | + "/v1/common/app-sharing": "", | ||
116 | + "/v1/user/cooperation-org": "", | ||
117 | + "/v1/app/cooperation-projects/person/shared-info": "", //共创项目详情 - 未登录可以查看 | ||
118 | + "/v1/app/cooperation-projects/person/shared-info/attachment": "", | ||
118 | } | 119 | } |
119 | var err error | 120 | var err error |
120 | if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil { | 121 | if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil { |
-
请 注册 或 登录 后发表评论