#942: 修复下载iphone的声音文件时微信返回文件名为空的问题

This commit is contained in:
shilianwang 2019-03-01 10:48:23 +08:00 committed by Binary Wang
parent b5230ae982
commit 1e23b3b743

View File

@ -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),