mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-04 20:57:47 +08:00
#942: 修复下载iphone的声音文件时微信返回文件名为空的问题
This commit is contained in:
parent
b5230ae982
commit
1e23b3b743
@ -57,7 +57,7 @@ public class ApacheMediaDownloadRequestExecutor extends BaseMediaDownloadRequest
|
||||
|
||||
String fileName = new HttpResponseProxy(response).getFileName();
|
||||
if (StringUtils.isBlank(fileName)) {
|
||||
return null;
|
||||
fileName = String.valueOf(System.currentTimeMillis());
|
||||
}
|
||||
|
||||
return FileUtils.createTmpFile(inputStream, FilenameUtils.getBaseName(fileName), FilenameUtils.getExtension(fileName),
|
||||
|
Loading…
Reference in New Issue
Block a user