From 8b357a7abbf1f7c0188e475f4aa0e04a4d9c7b77 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 11 Apr 2023 21:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuConfig.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuConfig.js | 9 +++++++++ SrcJuVariable.js | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 SrcJuConfig.js delete mode 100644 SrcJuVariable.js diff --git a/SrcJuConfig.js b/SrcJuConfig.js new file mode 100644 index 00000000..a22fc36d --- /dev/null +++ b/SrcJuConfig.js @@ -0,0 +1,9 @@ +let cfgfile = "hiker://files/rules/Src/Ju/config.json"; +let Jucfg=fetch(cfgfile); +if(Jucfg != ""){ + eval("var Juconfig=" + Jucfg+ ";"); +}else{ + var Juconfig= {}; +} +let runMode = Juconfig["runMode"] || "漫画"; +let sourcename = Juconfig[runMode+'sourcename'] || ""; \ No newline at end of file diff --git a/SrcJuVariable.js b/SrcJuVariable.js deleted file mode 100644 index c0388abe..00000000 --- a/SrcJuVariable.js +++ /dev/null @@ -1,4 +0,0 @@ - -function slog(str) { - log('test'); -} \ No newline at end of file