|
|
@ -89,27 +89,45 @@ function SRCSet() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
|
title: '操作', |
|
|
|
title: '操作', |
|
|
|
url: $(["接口更新"], 2).select(() => { |
|
|
|
url: $(["接口更新","清空接口"], 2).select(() => { |
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); |
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); |
|
|
|
let updatelist = []; |
|
|
|
if(input=="接口更新"){ |
|
|
|
yxdatalist.forEach(it=>{ |
|
|
|
showLoading("更新中..."); |
|
|
|
eval("let yparse = " + it.parse); |
|
|
|
let updatelist = []; |
|
|
|
if (yparse && yparse.ext && /^http/.test(yparse.ext) && updatelist.indexOf(yparse.ext)==-1) { |
|
|
|
yxdatalist.forEach(it=>{ |
|
|
|
fetchCache(yparse.ext, 0); |
|
|
|
try{ |
|
|
|
updatelist.push(yparse.ext); |
|
|
|
eval("let yparse = " + it.parse); |
|
|
|
} |
|
|
|
if (yparse && yparse.ext && /^http/.test(yparse.ext) && updatelist.indexOf(yparse.ext)==-1) { |
|
|
|
eval("let eparse = " + it.erparse); |
|
|
|
fetchCache(yparse.ext, 0); |
|
|
|
if (eparse && eparse.ext && /^http/.test(eparse.ext) && updatelist.indexOf(eparse.ext)==-1) { |
|
|
|
updatelist.push(yparse.ext); |
|
|
|
fetchCache(eparse.ext, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
eval("let eparse = " + it.erparse); |
|
|
|
eval("let gparse = " + it.public); |
|
|
|
if (eparse && eparse.ext && /^http/.test(eparse.ext) && updatelist.indexOf(eparse.ext)==-1) { |
|
|
|
if (gparse && gparse.ext && /^http/.test(gparse.ext) && updatelist.indexOf(gparse.ext)==-1) { |
|
|
|
fetchCache(eparse.ext, 0); |
|
|
|
fetchCache(gparse.ext, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
eval("let gparse = " + it.public); |
|
|
|
}) |
|
|
|
if (gparse && gparse.ext && /^http/.test(gparse.ext) && updatelist.indexOf(gparse.ext)==-1) { |
|
|
|
return "toast://在线接口更新完成"; |
|
|
|
fetchCache(gparse.ext, 0); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}catch(e){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
hideLoading(); |
|
|
|
|
|
|
|
return "toast://在线接口更新完成"; |
|
|
|
|
|
|
|
}else if(input=="清空接口"){ |
|
|
|
|
|
|
|
return $("确定清空所有接口吗?").confirm((sourcefile)=>{ |
|
|
|
|
|
|
|
return $("确定想好了吗,清空接口后无法恢复?").confirm((sourcefile)=>{ |
|
|
|
|
|
|
|
let datalist = []; |
|
|
|
|
|
|
|
writeFile(sourcefile, JSON.stringify(datalist)); |
|
|
|
|
|
|
|
clearMyVar('searchMark'); |
|
|
|
|
|
|
|
refreshPage(false); |
|
|
|
|
|
|
|
return 'toast://已删除'; |
|
|
|
|
|
|
|
},sourcefile) |
|
|
|
|
|
|
|
},sourcefile) |
|
|
|
|
|
|
|
} |
|
|
|
}), |
|
|
|
}), |
|
|
|
img: "https://lanmeiguojiang.com/tubiao/more/25.png", |
|
|
|
img: "https://lanmeiguojiang.com/tubiao/more/290.png", |
|
|
|
col_type: "icon_4" |
|
|
|
col_type: "icon_4" |
|
|
|
}); |
|
|
|
}); |
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
@ -175,12 +193,13 @@ function SRCSet() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
|
title: '分享', |
|
|
|
title: '分享', |
|
|
|
url: yxdatalist.length == 0 ? "toast://有效聚阅接口为0,无法分享" : $().b64().lazyRule((yxdatalist) => { |
|
|
|
url: yxdatalist.length == 0 ? "toast://有效聚阅接口为0,无法分享" : $().b64().lazyRule(() => { |
|
|
|
let sharelist; |
|
|
|
let sharelist; |
|
|
|
let duoselect = storage0.getMyVar('duoselect')?storage0.getMyVar('duoselect'):[]; |
|
|
|
let duoselect = storage0.getMyVar('duoselect')?storage0.getMyVar('duoselect'):[]; |
|
|
|
if(duoselect.length>0){ |
|
|
|
if(duoselect.length>0){ |
|
|
|
sharelist = duoselect; |
|
|
|
sharelist = duoselect; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuPublic.js'); |
|
|
|
sharelist = yxdatalist; |
|
|
|
sharelist = yxdatalist; |
|
|
|
} |
|
|
|
} |
|
|
|
let pastes = getPastes(); |
|
|
|
let pastes = getPastes(); |
|
|
@ -197,7 +216,7 @@ function SRCSet() { |
|
|
|
return "toast://分享失败,剪粘板或网络异常"+pasteurl; |
|
|
|
return "toast://分享失败,剪粘板或网络异常"+pasteurl; |
|
|
|
} |
|
|
|
} |
|
|
|
},sharelist) |
|
|
|
},sharelist) |
|
|
|
}, yxdatalist), |
|
|
|
}), |
|
|
|
img: "https://lanmeiguojiang.com/tubiao/more/3.png", |
|
|
|
img: "https://lanmeiguojiang.com/tubiao/more/3.png", |
|
|
|
col_type: "icon_4" |
|
|
|
col_type: "icon_4" |
|
|
|
}); |
|
|
|
}); |
|
|
|