Commit 86241d99 by danmo

欢迎语图片问题

1 parent 68f75776
......@@ -141,7 +141,7 @@ public class WeCallBackAddExternalContactImpl extends WeEventStrategy {
}
if (StringUtils.isNotEmpty(messageMap.getCategoryId())) {
WeMediaDto weMediaDto = weMaterialService
.uploadTemporaryMaterial(messageMap.getMaterialUrl(), messageMap.getMaterialName(), MediaType.IMAGE.getMediaType());
.uploadTemporaryMaterial(messageMap.getMaterialUrl(), MediaType.IMAGE.getMediaType(),messageMap.getMaterialName());
Optional.ofNullable(weMediaDto).ifPresent(media -> {
weWelcomeMsgBuilder.image(WeWelcomeMsg.Image.builder().media_id(media.getMedia_id())
.pic_url(media.getUrl()).build());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!