Browse Source

Merge remote-tracking branch 'origin/master'

liuyc 2 năm trước cách đây
mục cha
commit
bab9762732

+ 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());
         }