From 2e1c154f1332681fb8da61cb3012381a236e816a Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期四, 15 十二月 2022 16:55:59 +0800 Subject: [PATCH] 新增时间算法 --- 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