From 395831220a28827169271226aede5d99b4dc4307 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 20 Oct 2024 20:51:06 +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, 8 insertions(+), 4 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 0026af1b..15ef1d13 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -868,7 +868,7 @@ function shareResource() { let cfgfile = globalMap0.getVar('Jy_gmParams').cfgfile; let codeid = aesEncode('Juying2', it.path); if(input=="复制"){ - copy('资源码¥'+codeid+'¥聚影'); + copy('聚影资源码¥'+codeid+'¥'+it.name); return "hiker://empty"; }else if(input=="删除"){ return $("确定要删除云端分享:"+it.name+"\n删除后无法找回").confirm((Juconfig,it,cfgfile)=>{ @@ -1038,7 +1038,7 @@ function subResource() { desc: '感谢TyrantGenesis大佬提供的云6剪贴板', url: $("", "输入聚影资源码").input(()=>{ input = input.trim(); - if(!input || !input.includes('资源码¥') || !input.includes('¥聚影')){ + if(!input || !input.includes('聚影资源码¥')){ return "toast://输入不正确"; } try{ @@ -1049,7 +1049,11 @@ function subResource() { if(data=="juying"){ return "toast://资源码为空"; } - return $("", "获取成功,输入名称保存").input((path)=>{ + let newname = ""; + try{ + newname = input.split('¥')[2]; + }catch(e){} + return $(newname, "获取成功,输入名称保存").input((path)=>{ input = input.trim(); if(input){ let Juconfig = storage0.getMyVar('Juconfig'); @@ -1087,7 +1091,7 @@ function subResource() { let cfgfile = globalMap0.getVar('Jy_gmParams').cfgfile; let codeid = aesEncode('Juying2', it.path); if(input=="复制"){ - copy('资源码¥'+codeid+'¥聚影'); + copy('聚影资源码¥'+codeid+'¥'+it.name); return "hiker://empty"; }else if(input=="自动"){ let resources = Juconfig['subResource'] || [];