From 2078aee230bc109d66da296da8b7f24377befa1b Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期五, 20 十二月 2024 11:08:44 +0800 Subject: [PATCH] 1 --- ycl-platform/src/test/java/com/ycl/sccgplatform/Test1.java | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ycl-platform/src/test/java/com/ycl/sccgplatform/Test1.java b/ycl-platform/src/test/java/com/ycl/sccgplatform/Test1.java index 311d69a..c845b23 100644 --- a/ycl-platform/src/test/java/com/ycl/sccgplatform/Test1.java +++ b/ycl-platform/src/test/java/com/ycl/sccgplatform/Test1.java @@ -5,9 +5,6 @@ import com.ycl.entity.user.UmsAdmin; import com.ycl.mapper.unlawful.UnlawfulMapper; import com.ycl.service.oss.OssService; -import com.ycl.util.dahua.alarm.AlarmDataCB; -import com.ycl.util.dahua.lib.module.LoginModule; -import com.ycl.util.dahua.module.AlarmListenModule; import net.coobird.thumbnailator.Thumbnails; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; @@ -46,7 +43,7 @@ ByteArrayOutputStream outs = new ByteArrayOutputStream(); Thumbnails.of(in).scale(0.6).outputQuality(1).toOutputStream(outs); InputStream ins = new ByteArrayInputStream(outs.toByteArray()); - String picData = ossService.uploadImages(ins, ".png"); + String picData = ossService.uploadImages(ins, ".png",0); System.out.println(picData); } } catch (IOException e) { @@ -86,7 +83,7 @@ String PicData = br.readLine(); byte[] data = DatatypeConverter.parseBase64Binary(PicData); InputStream inputStream = new ByteArrayInputStream(data); - String s = ossService.uploadImages(inputStream, extension); + String s = ossService.uploadImages(inputStream, extension,0); System.out.println(s); br.close(); -- Gitblit v1.8.0