Commit 718513b6 by Hayreal

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

1 parent 8fae4e06
......@@ -298,7 +298,7 @@ public class RopRequestConveter {
}
if (dto.getVideo() != null) {
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) {
paramsMap.add(field.getName() + "[" + i + "].link.url", dto.getLink().getUrl());
......
......@@ -155,10 +155,10 @@ public class ExecuteTaskService {
throw new AdminException(ResultEnum.UPLOAD_MEDIA_FAIL);
}
attContent.setMediaId(mediaId);
if (attType.equals(VEDIO)){
String firstOfVideoMediaId = workWechatService.uploadMediaGetMediaId(workWechatDTO);
attContent.setThumbMediaId(firstOfVideoMediaId);
}
// if (attType.equals(VEDIO)){
// String firstOfVideoMediaId = workWechatService.uploadMediaGetMediaId(workWechatDTO);
// attContent.setThumbMediaId(firstOfVideoMediaId);
// }
}
return contentList;
}
......@@ -257,7 +257,7 @@ public class ExecuteTaskService {
WorkWechatMomentAttachmentDTO attachmentDTO = new WorkWechatMomentAttachmentDTO();
WorkWechatMomentAttachmentVideoDTO video = new WorkWechatMomentAttachmentVideoDTO();
video.setMediaId(content.getMediaId());
video.setThumbMediaId(content.getThumbMediaId());
// video.setThumbMediaId(content.getThumbMediaId());
// video.setThumbMediaId("WWME_-ZewEAAATblGy61HEuxve8lRqzXgqw");
attachmentDTO.setVideo(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!