feat: 下载调整
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user