From 183d92e167b2b8b54959fdbdf29f86df8410577d Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 11 Jul 2024 18:56:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 58113449..b4c444ef 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -604,7 +604,17 @@ function getHistory(){ } // 获取图标地址 function getIcon(icon) { - return "https://www.hikerfans.com/juying/img/" + icon; + return 'https://www.hikerfans.com/juying/img/'+icon+'?s=#FF0099@js=' + $.toString(() => { + let javaImport = new JavaImporter(); + javaImport.importPackage(Packages.com.example.hikerview.utils); + with(javaImport) { + let bytes = FileUtil.toBytes(input); + let str = new java.lang.String(bytes, "UTF-8") + ""; + str = str.replace(/#FF9900/g, '#FF0099'); + bytes = new java.lang.String(str).getBytes(); + return FileUtil.toInputStream(bytes); + } + }) } // 重定义打印日志 var xlog = log;