From 5d1cf5705beca003c2152f3a4346205ea842fb69 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Sat, 22 Jan 2022 23:34:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=AE=A2=E9=98=85=E6=BA=90=E7=BD=91?= =?UTF-8?q?=E9=A1=B5=E7=BC=96=E8=BE=91=20=E6=95=B0=E6=8D=AE=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/web/rssSource/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/assets/web/rssSource/index.js b/app/src/main/assets/web/rssSource/index.js index 235abf332..c0a487909 100644 --- a/app/src/main/assets/web/rssSource/index.js +++ b/app/src/main/assets/web/rssSource/index.js @@ -76,14 +76,15 @@ function rule2json() { let RuleJSON = Container(); // 转换base Object.keys(RuleJSON).forEach(key => { - if (!key.startsWith("rule")) { RuleJSON[key] = $('#' + key).value; - } }); - + //类型转换 RuleJSON.lastUpdateTime = new Date().getTime(); RuleJSON.customOrder = RuleJSON.customOrder == '' ? 0 : parseInt(RuleJSON.customOrder); + RuleJSON.articleStyle = RuleJSON.articleStyle == '' ? 0 : parseInt(RuleJSON.articleStyle); RuleJSON.enabled = RuleJSON.enabled == '' || String(RuleJSON.enabled).toLocaleLowerCase().replace(/^\s*|\s*$/g, '') == 'true'; + RuleJSON.loadWithBaseUrl = RuleJSON.loadWithBaseUrl == '' || String(RuleJSON.loadWithBaseUrl).toLocaleLowerCase().replace(/^\s*|\s*$/g, '') == 'true'; + RuleJSON.enableJs = RuleJSON.enableJs == '' || String(RuleJSON.enableJs).toLocaleLowerCase().replace(/^\s*|\s*$/g, '') == 'true'; return RuleJSON; } // 将源对象填充到源表单