|
@@ -278,6 +278,15 @@ public class WeComSpecialDataJob {
|
|
|
imageAttachment.put("image", image);
|
|
|
attachments.add(imageAttachment);
|
|
|
}
|
|
|
+
|
|
|
+ if (Objects.equals(MessageAttachmentTypeEnum.VIDEO.getCode(), type)) {
|
|
|
+ JSONObject videoAttachment = new JSONObject();
|
|
|
+ JSONObject image = new JSONObject();
|
|
|
+ image.put("media_id", messageAttachment.getMediaId());
|
|
|
+ videoAttachment.put("msgtype", "video");
|
|
|
+ videoAttachment.put("video", image);
|
|
|
+ attachments.add(videoAttachment);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|