From cdd0f95a6ababf1f6f8a355291e03bf8ad8a8ef9 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 4 Aug 2023 14:56:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuMethod.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuMethod.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SrcJuMethod.js b/SrcJuMethod.js index b1bbda10..eac30f49 100644 --- a/SrcJuMethod.js +++ b/SrcJuMethod.js @@ -164,11 +164,12 @@ function imageCompress(imgurl,fileid) { let newpath = "/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/"+(fileid||"")+"_"+getName(imgurl); log(newpath); //compress(f, 2, newpath); + //log(f); let f = fetch(imgurl, { inputStream: true }); - compress(f, 3, "/storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/1.jpg"); - //return "file://" + newpath; - return "file:///storage/emulated/0/Android/data/com.example.hikerview/files/Documents/_cache/1.jpg"; + let r = compress(f, 3, newpath); + log(r); + return "file://" + newpath; } }