瀏覽代碼

代码优化开发20211017_2

MSY 3 年之前
父節點
當前提交
114eb35699
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/jkcredit/invoice/controller/localBussiness/CustomerController.java

+ 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;