更新 'SrcJuSet.js'

Ju
src48597962 1 year ago
parent 1e8a4c2854
commit 6a69c1980b
  1. 22
      SrcJuSet.js

@ -359,7 +359,21 @@ function SRCSet() {
},sharelist) },sharelist)
}), }),
img: "https://hikerfans.com/tubiao/more/3.png", img: "https://hikerfans.com/tubiao/more/3.png",
col_type: "icon_4" col_type: "icon_4",
extra: {
longClick: [{
title: '单接口分享剪贴板:' + Juconfig['sharePaste'],
js: $.toString((cfgfile, Juconfig) => {
let pastes = getPastes();
return $(pastes,2,'指定单接口分享时用哪个剪贴板').select((cfgfile,Juconfig) => {
Juconfig["sharePaste"] = input;
writeFile(cfgfile, JSON.stringify(Juconfig));
refreshPage(false);
return 'toast://单接口分享剪贴板已设置为:' + input;
}, cfgfile, Juconfig)
},cfgfile, Juconfig)
}]
}
}); });
d.push({ d.push({
col_type: "line" col_type: "line"
@ -508,13 +522,13 @@ function SRCSet() {
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuMethod.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuMethod.js');
duoselect(data); duoselect(data);
return "hiker://empty"; return "hiker://empty";
},base64Encode(JSON.stringify(item))):$(["分享", "编辑", "删除", item.stop?"启用":"禁用","选择","改名"], 2).select((sourcefile, data) => { },base64Encode(JSON.stringify(item))):$(["分享", "编辑", "删除", item.stop?"启用":"禁用","选择","改名"], 2).select((sourcefile,data,paste) => {
data = JSON.parse(base64Decode(data)); data = JSON.parse(base64Decode(data));
if (input == "分享") { if (input == "分享") {
showLoading('分享上传中,请稍后...'); showLoading('分享上传中,请稍后...');
let oneshare = [] let oneshare = []
oneshare.push(data); oneshare.push(data);
let pasteurl = sharePaste(aesEncode('SrcJu', JSON.stringify(oneshare))); let pasteurl = sharePaste(aesEncode('SrcJu', JSON.stringify(oneshare)), paste||"");
hideLoading(); hideLoading();
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');
@ -573,7 +587,7 @@ function SRCSet() {
return 'toast://已重命名'; return 'toast://已重命名';
},sourcefile,data) },sourcefile,data)
} }
}, sourcefile, base64Encode(JSON.stringify(item))), }, sourcefile, base64Encode(JSON.stringify(item)), Juconfig['sharePaste']),
desc: (item.group?"["+item.group+"] ":"") + item.type, desc: (item.group?"["+item.group+"] ":"") + item.type,
img: item.img || "https://hikerfans.com/tubiao/ke/31.png", img: item.img || "https://hikerfans.com/tubiao/ke/31.png",
col_type: "avatar", col_type: "avatar",

Loading…
Cancel
Save