...
|
...
|
@@ -98,23 +98,24 @@ func CheckAccessToken2() web.FilterFunc { |
|
|
return func(ctx *context.Context) {
|
|
|
tokenStr := ctx.Input.Header("x-mmm-accesstoken")
|
|
|
filterMap := map[string]string{
|
|
|
"/v1/auth/login/pwd": "",
|
|
|
"/v1/auth/login/sms": "",
|
|
|
"/v1/auth/login/qrcode": "",
|
|
|
"/v1/auth/org-switch": "",
|
|
|
"/v1/user/company-orgs": "",
|
|
|
"/v1/auth/captcha-init": "",
|
|
|
"/v1/auth/qrcode-init": "",
|
|
|
"/v1/auth/sms-code": "",
|
|
|
"/v1/auth/check-sms-code": "",
|
|
|
"/v1/auth/company-sign-up": "",
|
|
|
"/v1/auth/reset-password": "",
|
|
|
"/v1/auth/refresh-token": "",
|
|
|
"/v1/app/cooperation-projects/person/search": "",
|
|
|
"/v1/common/dictionary/search": "",
|
|
|
"/v1/common/app-sharing": "",
|
|
|
"/v1/user/cooperation-org": "",
|
|
|
"/v1/app/cooperation-projects/person/shared-info": "", //共创项目详情 - 未登录可以查看
|
|
|
"/v1/auth/login/pwd": "",
|
|
|
"/v1/auth/login/sms": "",
|
|
|
"/v1/auth/login/qrcode": "",
|
|
|
"/v1/auth/org-switch": "",
|
|
|
"/v1/user/company-orgs": "",
|
|
|
"/v1/auth/captcha-init": "",
|
|
|
"/v1/auth/qrcode-init": "",
|
|
|
"/v1/auth/sms-code": "",
|
|
|
"/v1/auth/check-sms-code": "",
|
|
|
"/v1/auth/company-sign-up": "",
|
|
|
"/v1/auth/reset-password": "",
|
|
|
"/v1/auth/refresh-token": "",
|
|
|
"/v1/app/cooperation-projects/person/search": "",
|
|
|
"/v1/common/dictionary/search": "",
|
|
|
"/v1/common/app-sharing": "",
|
|
|
"/v1/user/cooperation-org": "",
|
|
|
"/v1/app/cooperation-projects/person/shared-info": "", //共创项目详情 - 未登录可以查看
|
|
|
"/v1/app/cooperation-projects/person/shared-info/attachment": "",
|
|
|
}
|
|
|
var err error
|
|
|
if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil {
|
...
|
...
|
|