ChenJiaHe
2021-05-12 6e509dfd3c387e1ecb4e271c81d865638176dc29
优化修改
1个文件已修改
4 ■■■■ 已修改文件
src/main/java/com/hx/util/OBSUtil.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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());