Commit 64a8c58b by qwmqiuwenmin

fix

parent 943f7aea
...@@ -120,6 +120,8 @@ public class MaterialApiServiceImpl implements MaterialApiService { ...@@ -120,6 +120,8 @@ public class MaterialApiServiceImpl implements MaterialApiService {
if(type == 5){ if(type == 5){
fileType = QywxMediaTypeEnum.FILE; fileType = QywxMediaTypeEnum.FILE;
url = materialDTO.getLink(); url = materialDTO.getLink();
}
if(type == 3){
String imgUrl = materialDTO.getImgUrl(); String imgUrl = materialDTO.getImgUrl();
logger.info("【上传图片】imgUrl={}",imgUrl); logger.info("【上传图片】imgUrl={}",imgUrl);
JSONResponse response = qywxSuiteApiService.uploadImage(enterprise.getCorpid(), config.getWxSuiteid(), getFileByte(imgUrl)); JSONResponse response = qywxSuiteApiService.uploadImage(enterprise.getCorpid(), config.getWxSuiteid(), getFileByte(imgUrl));
...@@ -176,6 +178,8 @@ public class MaterialApiServiceImpl implements MaterialApiService { ...@@ -176,6 +178,8 @@ public class MaterialApiServiceImpl implements MaterialApiService {
fileType = QywxMediaTypeEnum.FILE; fileType = QywxMediaTypeEnum.FILE;
url = materialDTO.getLink(); url = materialDTO.getLink();
oldUrl = old.getLink(); oldUrl = old.getLink();
}
if(type == 3){
String imgUrl = materialDTO.getImgUrl(); String imgUrl = materialDTO.getImgUrl();
String oldImgUrl = materialDTO.getImgUrl(); String oldImgUrl = materialDTO.getImgUrl();
if(!imgUrl.equals(oldImgUrl)){ if(!imgUrl.equals(oldImgUrl)){
......
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