Commit 4150fe8d by 徐高华

上传图片大小限制

parent 92020da2
......@@ -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