|
@@ -19,11 +19,11 @@ public class HttpUtilExt extends HttpUtil {
|
|
|
return;
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
- log.warn("第{}次文件下载失败,url{}", i+1, url);
|
|
|
+ log.warn("第{}次文件下载失败,url:{}", i+1, url);
|
|
|
}
|
|
|
}
|
|
|
if(!FileUtil.exist(localPath)){
|
|
|
- throw new BusinessException(ErrorCode.FAILURE_CODE_4002.code(), ErrorCode.FAILURE_CODE_4002.formatMessage(FileUtil.extName(localPath)));
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_4002.code(), ErrorCode.FAILURE_CODE_4002.formatMessage(FileUtil.getName(localPath)));
|
|
|
}
|
|
|
}
|
|
|
|