Commit 6a06e4d5 by 徐高华

图片

parent fd539a92
...@@ -193,7 +193,9 @@ public class MaterialServiceImpl implements MaterialService { ...@@ -193,7 +193,9 @@ public class MaterialServiceImpl implements MaterialService {
int count = arr.length; int count = arr.length;
JSONResponse jp = null ; JSONResponse jp = null ;
if(from==2 && entity.getMediaType()==2) { if(from==2 && entity.getMediaType()==2) {
url+= "?imageView2/2/w/1440/h/1080" ; if (type == 2) {
url+= "?imageView2/2/w/1440/h/1080" ;
}
jp = qywxSuiteApiService.uploadAttachment(qwDTO.getThirdCorpid(), config.getWxSuiteid(), CommonUtil.getFileByte(url), arr[count - 1], fileType.getCode()); jp = qywxSuiteApiService.uploadAttachment(qwDTO.getThirdCorpid(), config.getWxSuiteid(), CommonUtil.getFileByte(url), arr[count - 1], fileType.getCode());
}else { }else {
jp = qywxSuiteApiService.uploadMedia(qwDTO.getThirdCorpid(), config.getWxSuiteid(), CommonUtil.getFileByte(url), arr[count - 1], fileType.getCode()); 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