From d57fc1094625792b20d5ec713bcf9dfb1901ed68 Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期五, 01 九月 2023 10:17:15 +0800 Subject: [PATCH] 增加Excel解析不为空的校验 --- 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