Pārlūkot izejas kodu

公司制度预览PDF

qianxb 2 gadi atpakaļ
vecāks
revīzija
9eb0a8ba66

+ 1 - 1
blade-service/blade-control/src/main/java/org/springblade/control/controller/CorporationInfoController.java

@@ -164,7 +164,7 @@ public class CorporationInfoController extends BladeController {
 
         } else if (file.getOriginalFilename().contains("pdf")) {
             //获取PDF文件
-            BladeFile bladeFile = this.newIOSSClient.updateFile(file.getBytes(), file.getOriginalFilename());
+            BladeFile bladeFile = this.newIOSSClient.uploadFileByInputStream(file);
             BeanUtils.copyProperties(bladeFile, newBladeFile);
             newBladeFile.setPdfUrl(bladeFile.getLink());
         }