2
0

feat: 下载调整

This commit is contained in:
caiyuchao
2025-06-17 16:05:02 +08:00
parent 3dfee8e360
commit 4a55516016
3 changed files with 26 additions and 2 deletions

View File

@@ -105,7 +105,8 @@ public class UBillServiceImpl extends ServiceImpl<UBillMapper, UBill> implements
UBill bill = this.getById(id);
String invoiceFilePath = bill.getInvoiceFilePath();
if (StrUtil.isNotBlank(invoiceFilePath)) {
byte[] content = FileUtil.readBytes(invoiceFilePath);
R<byte[]> result = remoteFileService.download(invoiceFilePath);
byte[] content = result.getData();
if (content == null) {
throw new ServiceException("file does not exist");
}