Commit 718513b6 by Hayreal

sop触达中心-执行sop企微任务

1 parent 8fae4e06
...@@ -298,7 +298,7 @@ public class RopRequestConveter { ...@@ -298,7 +298,7 @@ public class RopRequestConveter {
} }
if (dto.getVideo() != null) { if (dto.getVideo() != null) {
paramsMap.add(field.getName() + "[" + i + "].video.mediaId", dto.getVideo().getMediaId()); paramsMap.add(field.getName() + "[" + i + "].video.mediaId", dto.getVideo().getMediaId());
paramsMap.add(field.getName() + "[" + i + "].video.thumbMediaId", dto.getVideo().getThumbMediaId()); // paramsMap.add(field.getName() + "[" + i + "].video.thumbMediaId", dto.getVideo().getThumbMediaId());
} }
if (dto.getLink() != null) { if (dto.getLink() != null) {
paramsMap.add(field.getName() + "[" + i + "].link.url", dto.getLink().getUrl()); paramsMap.add(field.getName() + "[" + i + "].link.url", dto.getLink().getUrl());
......
...@@ -155,10 +155,10 @@ public class ExecuteTaskService { ...@@ -155,10 +155,10 @@ public class ExecuteTaskService {
throw new AdminException(ResultEnum.UPLOAD_MEDIA_FAIL); throw new AdminException(ResultEnum.UPLOAD_MEDIA_FAIL);
} }
attContent.setMediaId(mediaId); attContent.setMediaId(mediaId);
if (attType.equals(VEDIO)){ // if (attType.equals(VEDIO)){
String firstOfVideoMediaId = workWechatService.uploadMediaGetMediaId(workWechatDTO); // String firstOfVideoMediaId = workWechatService.uploadMediaGetMediaId(workWechatDTO);
attContent.setThumbMediaId(firstOfVideoMediaId); // attContent.setThumbMediaId(firstOfVideoMediaId);
} // }
} }
return contentList; return contentList;
} }
...@@ -257,7 +257,7 @@ public class ExecuteTaskService { ...@@ -257,7 +257,7 @@ public class ExecuteTaskService {
WorkWechatMomentAttachmentDTO attachmentDTO = new WorkWechatMomentAttachmentDTO(); WorkWechatMomentAttachmentDTO attachmentDTO = new WorkWechatMomentAttachmentDTO();
WorkWechatMomentAttachmentVideoDTO video = new WorkWechatMomentAttachmentVideoDTO(); WorkWechatMomentAttachmentVideoDTO video = new WorkWechatMomentAttachmentVideoDTO();
video.setMediaId(content.getMediaId()); video.setMediaId(content.getMediaId());
video.setThumbMediaId(content.getThumbMediaId()); // video.setThumbMediaId(content.getThumbMediaId());
// video.setThumbMediaId("WWME_-ZewEAAATblGy61HEuxve8lRqzXgqw"); // video.setThumbMediaId("WWME_-ZewEAAATblGy61HEuxve8lRqzXgqw");
attachmentDTO.setVideo(video); attachmentDTO.setVideo(video);
attachmentDTO.setMsgType("video"); attachmentDTO.setMsgType("video");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!