|
|
@ -1512,6 +1512,15 @@ function resource() { |
|
|
|
return "hiker://empty"; |
|
|
|
return "hiker://empty"; |
|
|
|
}) |
|
|
|
}) |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
d.push({ |
|
|
|
|
|
|
|
title: (importtype=="2"?"👉":"")+"道长drpy库", |
|
|
|
|
|
|
|
col_type: 'scroll_button', |
|
|
|
|
|
|
|
url: $('#noLoading#').lazyRule(() => { |
|
|
|
|
|
|
|
putMyVar('importtype','2'); |
|
|
|
|
|
|
|
refreshPage(false); |
|
|
|
|
|
|
|
return "hiker://empty"; |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if(importtype=="1"){ |
|
|
|
if(importtype=="1"){ |
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
@ -1620,7 +1629,7 @@ function resource() { |
|
|
|
}); |
|
|
|
}); |
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
|
title: '🆗 确定导入(' + (Juconfig["importmode"]?"全":"增")+')', |
|
|
|
title: '🆗 确定导入(' + (Juconfig["importmode"]?"全":"增")+')', |
|
|
|
url: getMyVar('importjiekou','1')!="1"&&getMyVar('importjiexi','1')!="1"?'toast://请选择导入项目':$('#noLoading#').lazyRule((Juconfig,cfgfile) => { |
|
|
|
url: importtype=="1"&&getMyVar('importjiekou','1')!="1"&&getMyVar('importjiexi','1')!="1"?'toast://请选择导入项目':$('#noLoading#').lazyRule((Juconfig,cfgfile) => { |
|
|
|
if(getMyVar('importinput', '')==""){ |
|
|
|
if(getMyVar('importinput', '')==""){ |
|
|
|
return 'toast://请先输入链接地址' |
|
|
|
return 'toast://请先输入链接地址' |
|
|
|
} |
|
|
|
} |
|
|
@ -1638,7 +1647,13 @@ function resource() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJySet.js'); |
|
|
|
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJySet.js'); |
|
|
|
|
|
|
|
if(getMyVar('importtype','1')=="1"){ |
|
|
|
return Resourceimport(input,getMyVar('importtype','1'),Juconfig['importmode']?1:0); |
|
|
|
return Resourceimport(input,getMyVar('importtype','1'),Juconfig['importmode']?1:0); |
|
|
|
|
|
|
|
}else if(getMyVar('importtype','1')=="1"){ |
|
|
|
|
|
|
|
let html = request('https://github.com/hjdhnx/hipy-server/tree/master/app/t4/files/drpy_js'); |
|
|
|
|
|
|
|
log(html); |
|
|
|
|
|
|
|
return "hiker://empty"; |
|
|
|
|
|
|
|
} |
|
|
|
}, Juconfig, cfgfile), |
|
|
|
}, Juconfig, cfgfile), |
|
|
|
col_type: "text_2", |
|
|
|
col_type: "text_2", |
|
|
|
extra: { |
|
|
|
extra: { |
|
|
|