作者 yangfu

分页修改

@@ -120,7 +120,7 @@ func (srv CooperationProjectService) SearchCooperationProjectContracts(projectQu @@ -120,7 +120,7 @@ func (srv CooperationProjectService) SearchCooperationProjectContracts(projectQu
120 result, err := creationCooperationGateway.CooperationStatistics( 120 result, err := creationCooperationGateway.CooperationStatistics(
121 allied_creation_cooperation.CompanyCooperationProjectContracts, 121 allied_creation_cooperation.CompanyCooperationProjectContracts,
122 map[string]interface{}{ 122 map[string]interface{}{
123 - "offset": projectQuery.PageSize * (projectQuery.PageNumber - 1), 123 + "offset": projectQuery.PageSize * projectQuery.PageNumber,
124 "limit": projectQuery.PageSize, 124 "limit": projectQuery.PageSize,
125 "projectId": projectQuery.CooperationProjectId, 125 "projectId": projectQuery.CooperationProjectId,
126 }, 126 },
@@ -248,6 +248,10 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfoAtta @@ -248,6 +248,10 @@ func (srv CooperationProjectService) PersonSearchCooperationProjectShareInfoAtta
248 // 不是本人查看需要做模糊处理 248 // 不是本人查看需要做模糊处理
249 if response.Attachment != nil && len(response.Attachment.Url) > 0 { 249 if response.Attachment != nil && len(response.Attachment.Url) > 0 {
250 if response.UserBaseId != projectQuery.Operator.UserBaseId { 250 if response.UserBaseId != projectQuery.Operator.UserBaseId {
  251 + // 大文件报错
  252 + if response.Attachment.FileSize != 0 && response.Attachment.FileSize > 10*1024*1024 {
  253 + return nil, application.ThrowError(application.BUSINESS_ERROR, "文件过大,不可查看")
  254 + }
251 file, err := blur.FileBlur(response.Attachment.Url, true) 255 file, err := blur.FileBlur(response.Attachment.Url, true)
252 if err != nil { // || len(file)==0 256 if err != nil { // || len(file)==0
253 log.Logger.Error(err.Error()) 257 log.Logger.Error(err.Error())