作者 yangfu

共创详情修改

@@ -215,7 +215,9 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfo(pro @@ -215,7 +215,9 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfo(pro
215 result, err := creationCooperationGateway.CooperationStatistics( 215 result, err := creationCooperationGateway.CooperationStatistics(
216 allied_creation_cooperation.PersonCooperationProjectSharedInfo, 216 allied_creation_cooperation.PersonCooperationProjectSharedInfo,
217 map[string]interface{}{ 217 map[string]interface{}{
218 - "projectId": projectQuery.CooperationProjectId, 218 + "projectId": projectQuery.CooperationProjectId,
  219 + "userBaseId": projectQuery.Operator.UserBaseId,
  220 + "sensitive": true,
219 }, 221 },
220 ) 222 )
221 if err != nil { 223 if err != nil {
@@ -244,7 +246,7 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfoAtta @@ -244,7 +246,7 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfoAtta
244 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 246 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
245 } 247 }
246 // 不是本人查看需要做模糊处理 248 // 不是本人查看需要做模糊处理
247 - if response.Attachment != nil { 249 + if response.Attachment != nil && len(response.Attachment.Url) > 0 {
248 if response.UserBaseId != projectQuery.Operator.UserBaseId { 250 if response.UserBaseId != projectQuery.Operator.UserBaseId {
249 file, err := blur.FileBlur(response.Attachment.Url, true) 251 file, err := blur.FileBlur(response.Attachment.Url, true)
250 if err != nil { // || len(file)==0 252 if err != nil { // || len(file)==0
@@ -98,22 +98,23 @@ func CheckAccessToken2() web.FilterFunc { @@ -98,22 +98,23 @@ 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": "", 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": "", //共创项目详情 - 未登录可以查看
117 } 118 }
118 var err error 119 var err error
119 if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil { 120 if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil {