更新 'SrcJuPublic.js'

Ju
src48597962 1 year ago
parent a5974918ba
commit 606dec8c29
  1. 5
      SrcJuPublic.js

@ -92,7 +92,7 @@ function selectSource(selectType) {
} }
}) })
*/ */
const hikerPop = require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'hikerPop.js'); const hikerPop = $.require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'hikerPop.js');
getListData("yi",selectType).forEach(it=>{ getListData("yi",selectType).forEach(it=>{
if(sourcenames.indexOf(it.name)==-1){ if(sourcenames.indexOf(it.name)==-1){
if(Juconfig[runMode+'sourcename'] == it.name){ if(Juconfig[runMode+'sourcename'] == it.name){
@ -104,6 +104,9 @@ function selectSource(selectType) {
if(sourcenames.length==0){ if(sourcenames.length==0){
return "toast://当前分类无接口" return "toast://当前分类无接口"
} }
if(getItem('sourceListSort','update') == 'name'){
sourcenames.sort();
}
//return $(sourcenames,3,"选择 "+selectType+" 主页源").select((runMode,sourcename,cfgfile,Juconfig) => { //return $(sourcenames,3,"选择 "+selectType+" 主页源").select((runMode,sourcename,cfgfile,Juconfig) => {
hikerPop.selectCenterIcon({iconList: sourcenames, title: selectType + ">主页源>" + sourcename, columns: 2, click(input) { hikerPop.selectCenterIcon({iconList: sourcenames, title: selectType + ">主页源>" + sourcename, columns: 2, click(input) {
input = input.replace(/‘|’|“|”|<[^>]+>/g,"").replace(/(.*)√/,'$1'); input = input.replace(/‘|’|“|”|<[^>]+>/g,"").replace(/(.*)√/,'$1');

Loading…
Cancel
Save