From c65d159c582d02a923d6c42e4e878ea28163e5df Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 20 Jul 2023 20:18:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuSet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuSet.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SrcJuSet.js b/SrcJuSet.js index a2d8df55..5031fc88 100644 --- a/SrcJuSet.js +++ b/SrcJuSet.js @@ -270,8 +270,8 @@ function SRCSet() { return $('hiker://empty#noRecordHistory##noHistory#').rule((sourcefile, data) => { setPageTitle('编辑 | 聚阅接口'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuSet.js'); - jiekouapi(sourcefile, data); - }, sourcefile, data) + jiekouapi(sourcefile, base64Decode(data)); + }, sourcefile, base64Encode(data)) } else if (input == "删除") { return $("确定删除:"+data.name).confirm((sourcefile,data)=>{ let sourcedata = fetch(sourcefile); @@ -516,7 +516,6 @@ function jiekouapi(sourcefile, data) { let type = getMyVar('jiekoutype','漫画'); let group = getMyVar('jiekougroup'); let parse = getMyVar('jiekouparse'); - log(parse); let erparse = getMyVar('jiekouerparse'); let public = getMyVar('jiekoupublic'); let newapi = { @@ -572,7 +571,7 @@ function jiekouapi(sourcefile, data) { datalist.splice(index, 1); } datalist.push(newapi); - writeFile(sourcefile, $.stringify(datalist)); + writeFile(sourcefile, JSON.stringify(datalist)); clearMyVar('searchMark'); back(true); return "toast://已保存";