ChenJiaHe
2021-05-12 6e509dfd3c387e1ecb4e271c81d865638176dc29
src/main/java/com/hx/util/OBSUtil.java
@@ -47,7 +47,7 @@
      //初始化OBS客户端
      ObsClient obsClient = new ObsClient(ak, sk, endPoint);
      try{
         putObjectResult = obsClient.putObject(bucketName, fileName,localFile.getInputStream());
         putObjectResult = obsClient.putObject(bucketName, fileName, localFile.getInputStream());
      }catch (ObsException e){
         logger.error("华为云 OBS 上传文件报错 ");
         logger.error("HTTP Code: " + e.getResponseCode());
@@ -92,7 +92,7 @@
      //初始化OBS客户端
      ObsClient obsClient = new ObsClient(ak, sk, endPoint);
      try{
         putObjectResult = obsClient.putObject(bucketName, fileName,localFile);
         putObjectResult = obsClient.putObject(bucketName, fileName, localFile);
      }catch (ObsException e){
         logger.error("华为云 OBS 上传文件报错 ");
         logger.error("HTTP Code: " + e.getResponseCode());