From 55d7c61b3f83a69ac8d57bdfe793a6d532517467 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 30 Jun 2024 12:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJySet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJySet.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/SrcJySet.js b/SrcJySet.js index 453963b2..9a0017dd 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -1521,6 +1521,15 @@ function resource() { return "hiker://empty"; }) }); + d.push({ + title: (importtype=="3"?"👉":"")+"配置文件订阅", + col_type: 'scroll_button', + url: $('#noLoading#').lazyRule(() => { + putMyVar('importtype','3'); + refreshPage(false); + return "toast://订阅只支持app类、cms、hipy_t4,无法管理接口"; + }) + }); if(importtype=="1"){ d.push({ @@ -1565,7 +1574,7 @@ function resource() { }) }), extra: { - titleVisible: importtype=="1"?true:false, + titleVisible: importtype=="2"?false:true, defaultValue: getMyVar('importinput', ''), onChange: 'putMyVar("importinput",input)' } @@ -1650,6 +1659,10 @@ function resource() { return Resourceimport(input,getMyVar('importtype','1'),Juconfig['importmode']?1:0); }else if(getMyVar('importtype','1')=="2"){ return HipyImport(input,Juconfig['importmode']?1:0); + }else if(getMyVar('importtype','1')=="3"){ + Juconfig['dySource'] = input; + writeFile(cfgfile, JSON.stringify(Juconfig)); + return "toast://已订阅"; } }, Juconfig, cfgfile), col_type: "text_2",