更新 'SrcJyPublic.js'

master
src48597962 7 months ago
parent 8265dab805
commit 8fb2172e27
  1. 5
      SrcJyPublic.js

@ -106,11 +106,11 @@ function getDatas(lx, isyx) {
function checkBoxUrl(input) { function checkBoxUrl(input) {
let html; let html;
try{ try{
showLoading('检测文件有效性');
if(input.startsWith('/')){input = "file://" + input} if(input.startsWith('/')){input = "file://" + input}
if(input.startsWith('http')){ if(input.startsWith('http')){
let tmpFile = cachepath + md5(input) + ".json"; let tmpFile = cachepath + md5(input) + ".json";
if(!fileExist(tmpFile)){ if(!fileExist(tmpFile)){
showLoading('检测在线文件有效性');
html = getContnet(input); html = getContnet(input);
if(html){ if(html){
writeFile(tmpFile, html); writeFile(tmpFile, html);
@ -131,7 +131,6 @@ function checkBoxUrl(input) {
hideLoading(); hideLoading();
return {urls: data.urls}; return {urls: data.urls};
} }
java.lang.Thread.sleep(1000);
} catch (e) { } catch (e) {
hideLoading(); hideLoading();
log("box配置文件检测失败>" + e.message + " 错误行#" + e.lineNumber); log("box配置文件检测失败>" + e.message + " 错误行#" + e.lineNumber);
@ -176,7 +175,7 @@ function getBoxSource(input, mode, imports){
let result = {}; let result = {};
if(mode==1){ if(mode==1){
showLoading('正在多线程获取数据中...'); showLoading('正在多线程获取数据中');
} }
let jiekous = data.sites||[]; let jiekous = data.sites||[];
if(imports.jk && jiekous.length>0){ if(imports.jk && jiekous.length>0){

Loading…
Cancel
Save