From 5fc7ad220786878bf0bdad1520b708d8d895d543 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 7 Jul 2024 15:41:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 6208631f..685ef814 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -373,6 +373,15 @@ function selectSource() { clearMyVar('SrcJu_dianbo$classCache'); clearMyVar('SrcJu_dianbo$flCache'); clearMyVar('点播动态加载loading'); + + let sort = {}; + if(fetch(sortfile)){ + eval("sort = " + fetch(sortfile)); + } + let key = tmpList[i].url; + sort[key] = sort[key] || 0; + sort[key] = sort[key] + 1; + writeFile(sortfile, JSON.stringify(sort)); refreshPage(true); return 'toast://' + '主页源已设置为:' + input; }else{