更新 'SrcJySet.js'

master
src48597962 6 months ago
parent acf91beb52
commit 0591fdfbb0
  1. 37
      SrcJySet.js

@ -2023,23 +2023,27 @@ function resource() {
let lists = importrecord.filter(item => { let lists = importrecord.filter(item => {
return item.type==getMyVar('importtype','1'); return item.type==getMyVar('importtype','1');
}) })
lists.reverse();
if(lists.length>0){ if(lists.length>0){
d.push({ if(importtype=="1" || importtype=="2"){
title: '点此进行检测配置文件有效性👀', d.push({
url: $('#noLoading#').lazyRule((lists) => { title: '点此进行检测配置文件有效性👀',
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyPublic.js'); url: $('#noLoading#').lazyRule((lists) => {
lists.forEach(it=>{ require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyPublic.js');
let checkUrl = checkBoxUrl(it.url); lists.forEach(it=>{
updateItem(it.url, {title: it.url +(checkUrl.message?" ❌":" ✔")}); let checkUrl = checkBoxUrl(it.url);
}) updateItem(it.url, {title: it.url +(checkUrl.message?" ❌":" ✔")});
return "toast://已检测完成,长按删除坏的"; })
}, lists), return "toast://已检测完成,长按删除坏的";
col_type: "text_center_1" }, lists),
}); col_type: "text_center_1"
d.push({ });
col_type: "line" d.push({
}); col_type: "line"
lists.reverse(); });
}
for(let i=0;i<lists.length;i++){ for(let i=0;i<lists.length;i++){
d.push({ d.push({
title: lists[i].url, title: lists[i].url,
@ -2813,6 +2817,7 @@ function importConfirm(input) {
log(data); log(data);
if (input == "确定导入") { if (input == "确定导入") {
return $("如本地存在则将覆盖,确认?").confirm((lx,data)=>{ return $("如本地存在则将覆盖,确认?").confirm((lx,data)=>{
log(data);
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJySet.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJySet.js');
let num; let num;
if(lx=="jk"){ if(lx=="jk"){

Loading…
Cancel
Save