Jelajahi Sumber

代码优化开发20211017_2

MSY 3 tahun lalu
induk
melakukan
114eb35699

+ 1 - 1
src/main/java/com/jkcredit/invoice/controller/localBussiness/CustomerController.java

@@ -245,7 +245,7 @@ public class CustomerController {
         CustomerRec customerRec = (CustomerRec) customerService.contractDownload(customerRecId).getData();
         String fileName = customerRec.getLowerFileName();
         if(customerRec.getLowerBase64Str()!=null){
-            byte [] byteArray = Base64.getDecoder().decode(customerRec.getLowerBase64Str());
+            byte [] byteArray = Base64.getDecoder().decode(customerRec.getLowerBase64Str().replaceAll(" +","+"));
             InputStream inputStream = new ByteArrayInputStream(byteArray);
 
             OutputStream outputStream = null;