Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

企业微信素材下载异常:Prefix string too short #1500

Closed
BeHappyWsz opened this issue Apr 10, 2020 · 3 comments
Closed

企业微信素材下载异常:Prefix string too short #1500

BeHappyWsz opened this issue Apr 10, 2020 · 3 comments

Comments

@BeHappyWsz
Copy link

问题:
企业微信素材下载:安卓机上传的可下载、苹果机上传的下载异常。
**使用版本:**weixin-java-cp-3.3.0

  1. 调用接口
    File file = wxCpService.getMediaService().download(mediaId);
  2. 打断点走到:ApacheMediaDownloadRequestExecutor.execute()
    在获取fileName时:是根据Content-disposition添加的。
    安卓机上传正常获取的为:时间戳.silk
    苹果机上传后获取的是**.amr**,再次处理后变成"",然后创建文件时长度小于3异常了。
  3. 之前一直正常,最近才发现这个问题。是不是企业微信才区分了机型呢?
@binarywang
Copy link
Owner

按你的描述可能是做了调整,欢迎直接提供修复的PR代码

@binarywang
Copy link
Owner

关闭的有些早,还没发布新版本呢

@binarywang binarywang reopened this Apr 14, 2020
@binarywang
Copy link
Owner

3.7.7.B版本已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants