Commit e90a0f12 by 徐高华

Merge branch 'xgh_内容中台' into 'developer'

上传图片大小限制

See merge request !478
parents 8786c1e1 4150fe8d
......@@ -190,6 +190,7 @@ public class MaterialServiceImpl implements MaterialService {
int count = arr.length;
JSONResponse jp = null ;
if(from==2 && entity.getMediaType()==2) {
url+= "?imageView2/2/w/1440/h/1080" ;
jp = qywxSuiteApiService.uploadAttachment(qwDTO.getThirdCorpid(), config.getWxSuiteid(), CommonUtil.getFileByte(url), arr[count - 1], fileType.getCode());
}else {
jp = qywxSuiteApiService.uploadMedia(qwDTO.getThirdCorpid(), config.getWxSuiteid(), CommonUtil.getFileByte(url), arr[count - 1], fileType.getCode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment