From fc85b124ff863ce63b7cf97bffc9917572834b3e Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 12 Dec 2024 17:47:41 +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 | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/SrcJySet.js b/SrcJySet.js index debd3e52..73b3acb1 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -215,17 +215,18 @@ function SRCSet() { if (hikerPop.canBiometric() !== 0) { return "toast://无法调用生物学验证"; } - let pop = hikerPop.checkByBiometric(() => { - toast("通过"); - lockgroups = lockgroups.filter(item => item !== it); - }); - log($.type(pop)); + lockgroups = lockgroups.filter(item => item !== it); + hikerPop.checkByBiometric((Juconfig,cfgfile,lockgroups) => { + Juconfig["lockgroups"] = lockgroups; + writeFile(cfgfile, JSON.stringify(Juconfig)); + refreshPage(false); + },Juconfig,cfgfile,lockgroups); }else{ lockgroups.push(it); + Juconfig["lockgroups"] = lockgroups; + writeFile(cfgfile, JSON.stringify(Juconfig)); + refreshPage(false); } - Juconfig["lockgroups"] = lockgroups; - writeFile(cfgfile, JSON.stringify(Juconfig)); - refreshPage(false); },it) }] }