|
@@ -183,7 +183,7 @@ public class FileStorageHelper {
|
|
*/
|
|
*/
|
|
public static InputStream downloadStream(String fileId) {
|
|
public static InputStream downloadStream(String fileId) {
|
|
FileInfo info = downloadUrl(fileId);
|
|
FileInfo info = downloadUrl(fileId);
|
|
- if (StrUtil.isNotBlank(info.getFileDownloadUrl())){
|
|
|
|
|
|
+ if (StrUtil.isBlank(info.getFileDownloadUrl())){
|
|
throw new BusinessException(ResponseCode.B0300.getCode(),ResponseCode.B0300.getDesc());
|
|
throw new BusinessException(ResponseCode.B0300.getCode(),ResponseCode.B0300.getDesc());
|
|
}
|
|
}
|
|
return IoUtil.toStream(HttpUtil.downloadBytes(info.getFileDownloadUrl()));
|
|
return IoUtil.toStream(HttpUtil.downloadBytes(info.getFileDownloadUrl()));
|