疯狂的狮子li
2021-07-18 7cffafcdaa92f904cffe91284d641c781829b035
ruoyi-oss/src/main/java/com/ruoyi/oss/service/impl/QcloudCloudStorageServiceImpl.java
@@ -32,6 +32,7 @@
   @Autowired
   public QcloudCloudStorageServiceImpl(CloudStorageProperties properties) {
      this.properties = properties.getQcloud();
      try {
        COSCredentials credentials = new BasicCOSCredentials(
         this.properties.getSecretId(),
         this.properties.getSecretKey());
@@ -40,6 +41,9 @@
        // 设置bucket所在的区域,华南:gz 华北:tj 华东:sh
        clientConfig.setRegion(new Region(this.properties.getRegion()));
        client = new COSClient(credentials, clientConfig);
      } catch (Exception e) {
         throw new IllegalArgumentException("腾讯云存储配置错误! 请检查系统配置!");
      }
   }
   @Override