更新 'SrcJySet.js'

master
src48597962 8 months ago
parent 15c9633768
commit 4ebcd1711f
  1. 16
      SrcJySet.js

@ -1863,7 +1863,7 @@ function JYshare(lx,input) {
let sharetxt = base64Encode(JSON.stringify(datalist)); let sharetxt = base64Encode(JSON.stringify(datalist));
let code = sm + '¥' + aesEncode('Juying', sharetxt) + '¥云口令文件'; let code = sm + '¥' + aesEncode('Juying', sharetxt) + '¥云口令文件';
let sharefile = 'hiker://files/_cache/Juying_'+datalist.length+'_'+$.dateFormat(new Date(),"HHmmss")+'.hiker'; let sharefile = 'hiker://files/_cache/Juying_'+datalist.length+'_'+$.dateFormat(new Date(),"HHmmss")+'.hiker';
writeFile(sharefile, '云口令:'+code+`@import=js:$.require("hiker://page/cloudimport?rule=聚影");`); writeFile(sharefile, '云口令:'+code+`@import=js:$.require("hiker://page/cloudimport?rule=聚影");`);
if(fileExist(sharefile)){ if(fileExist(sharefile)){
return 'share://'+sharefile; return 'share://'+sharefile;
}else{ }else{
@ -1876,7 +1876,7 @@ function JYshare(lx,input) {
if(/^http|^云/.test(pasteurl) && pasteurl.includes('/')){ if(/^http|^云/.test(pasteurl) && pasteurl.includes('/')){
pasteurl = pasteurl.replace('云6oooole', 'https://pasteme.tyrantg.com').replace('云2oooole', 'https://netcut.cn').replace('云5oooole', 'https://cmd.im').replace('云7oooole', 'https://note.ms').replace('云9oooole', 'https://txtpbbd.cn').replace('云10oooole', 'https://hassdtebin.com'); pasteurl = pasteurl.replace('云6oooole', 'https://pasteme.tyrantg.com').replace('云2oooole', 'https://netcut.cn').replace('云5oooole', 'https://cmd.im').replace('云7oooole', 'https://note.ms').replace('云9oooole', 'https://txtpbbd.cn').replace('云10oooole', 'https://hassdtebin.com');
let code = sm+'¥'+aesEncode('Juying', pasteurl)+'¥共' + datalist.length + '条('+input+')'; let code = sm+'¥'+aesEncode('Juying', pasteurl)+'¥共' + datalist.length + '条('+input+')';
copy('云口令:'+code+`@import=js:$.require("hiker://page/cloudimport?rule=聚影");`); copy('云口令:'+code+`@import=js:$.require("hiker://page/cloudimport?rule=聚影");`);
return "toast://"+sm2; return "toast://"+sm2;
}else{ }else{
return "toast://分享失败,剪粘板或网络异常>"+pasteurl; return "toast://分享失败,剪粘板或网络异常>"+pasteurl;
@ -1906,7 +1906,7 @@ function JYimport(input) {
} }
} }
}catch(e){ }catch(e){
return "toast://聚影:口令有误>"+e.message; return "toast://聚影:口令有误>"+e.message;
} }
try{ try{
if (inputname == "聚影云盘") { if (inputname == "聚影云盘") {
@ -1916,11 +1916,11 @@ function JYimport(input) {
return "toast://合计" + datalist2.length + "个,导入" + num + "个"; return "toast://合计" + datalist2.length + "个,导入" + num + "个";
} }
if(inputname=="聚影接口"){ if(inputname=="聚影接口"){
var sm = "聚影:接口"; var sm = "聚影:接口";
}else if(inputname=="聚影解析"){ }else if(inputname=="聚影解析"){
var sm = "聚影:解析"; var sm = "聚影:解析";
}else{ }else{
return "toast://聚影:无法识别的口令"; return "toast://聚影:无法识别的口令";
} }
let text; let text;
if(/http/.test(pasteurl)){ if(/http/.test(pasteurl)){
@ -1953,9 +1953,9 @@ function JYimport(input) {
} }
return "toast://"+sm+"合计:"+pastedatalist.length+",保存:"+urlnum; return "toast://"+sm+"合计:"+pastedatalist.length+",保存:"+urlnum;
}else{ }else{
return "toast://聚影:口令错误或已失效"; return "toast://聚影:口令错误或已失效";
} }
} catch (e) { } catch (e) {
return "toast://聚影:无法识别的口令>"+e.message; return "toast://聚影:无法识别的口令>"+e.message;
} }
} }

Loading…
Cancel
Save