疯狂的狮子li
2021-08-18 36fae5c926e2c52c0e1c5d92adfc15352e242ee9
ruoyi-oss/src/main/java/com/ruoyi/oss/service/impl/QcloudCloudStorageStrategy.java
@@ -24,9 +24,10 @@
 */
public class QcloudCloudStorageStrategy extends AbstractCloudStorageStrategy {
   private final COSClient client;
   private COSClient client;
   public QcloudCloudStorageStrategy(CloudStorageProperties cloudStorageProperties) {
   @Override
   public void init(CloudStorageProperties cloudStorageProperties) {
      properties = cloudStorageProperties;
      try {
         COSCredentials credentials = new BasicCOSCredentials(
@@ -43,7 +44,7 @@
         client = new COSClient(credentials, clientConfig);
         createBucket();
      } catch (Exception e) {
         throw new IllegalArgumentException("腾讯云存储配置错误! 请检查系统配置!");
         throw new OssException("腾讯云存储配置错误! 请检查系统配置!");
      }
   }