作者 yangfu

共创详情修改

... ... @@ -216,6 +216,8 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfo(pro
allied_creation_cooperation.PersonCooperationProjectSharedInfo,
map[string]interface{}{
"projectId": projectQuery.CooperationProjectId,
"userBaseId": projectQuery.Operator.UserBaseId,
"sensitive": true,
},
)
if err != nil {
... ... @@ -244,7 +246,7 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfoAtta
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
}
// 不是本人查看需要做模糊处理
if response.Attachment != nil {
if response.Attachment != nil && len(response.Attachment.Url) > 0 {
if response.UserBaseId != projectQuery.Operator.UserBaseId {
file, err := blur.FileBlur(response.Attachment.Url, true)
if err != nil { // || len(file)==0
... ...
... ... @@ -114,6 +114,7 @@ func CheckAccessToken2() web.FilterFunc {
"/v1/common/dictionary/search": "",
"/v1/common/app-sharing": "",
"/v1/user/cooperation-org": "",
"/v1/app/cooperation-projects/person/shared-info": "", //共创项目详情 - 未登录可以查看
}
var err error
if filterUrl, err := url.Parse(ctx.Request.RequestURI); err == nil {
... ...