From 220da5159c5ce32f9096e02316b4c9019b09dba7 Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期一, 06 十一月 2023 17:27:15 +0800 Subject: [PATCH] 1.新增工具类 --- src/main/java/com/hx/util/COSUtil.java | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/hx/util/COSUtil.java b/src/main/java/com/hx/util/COSUtil.java index a10b1e1..92efaba 100644 --- a/src/main/java/com/hx/util/COSUtil.java +++ b/src/main/java/com/hx/util/COSUtil.java @@ -129,16 +129,11 @@ File downloadFile = null; try { GetObjectRequest getObjectRequest; - System.out.println("key:"+key); - System.out.println("bucketName:"+bucketName); - System.out.println("regionName:"+regionName); - System.out.println("regionName:"+regionName+".myqcloud.com"); //鎴彇鏂囦欢鍚嶇О String[] datas = key.split(regionName+".myqcloud.com/"); if(datas.length ==1){ getObjectRequest = new GetObjectRequest(bucketName, datas[0]); }else if(datas.length ==2){ - System.out.println("datas[1]:"+datas[1]); getObjectRequest = new GetObjectRequest(bucketName, datas[1]); }else{ throw new TipsException("鏂囦欢璺緞閿欒銆恔ey銆�"); -- Gitblit v1.8.0