From 3fd3781f0544bb90bba1a6b1b9ed07b83aedc413 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 15 Oct 2021 11:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/web/bookSource/index.js | 2 +- app/src/main/assets/web/rssSource/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/assets/web/bookSource/index.js b/app/src/main/assets/web/bookSource/index.js index da166e3c5..b93661bc1 100644 --- a/app/src/main/assets/web/bookSource/index.js +++ b/app/src/main/assets/web/bookSource/index.js @@ -377,7 +377,7 @@ $('.menu').addEventListener('click', e => { case 'accept': (async () => { let saveRule = [rule2json()]; - await HttpPost(`/saveBookSources`, saveRule).then(json => { + await HttpPost(`/saveBookSource`, saveRule[0]).then(json => { alert(json.isSuccess ? `源《${saveRule[0].bookSourceName}》已成功保存到「阅读3.0APP」` : `源《${saveRule[0].bookSourceName}》保存失败!\nErrorMsg: ${json.errorMsg}`); setRule(saveRule[0]); }).catch(err => { alert(`保存源失败,无法连接到「阅读3.0APP」!\n${err}`); }); diff --git a/app/src/main/assets/web/rssSource/index.js b/app/src/main/assets/web/rssSource/index.js index 90f84b14c..235abf332 100644 --- a/app/src/main/assets/web/rssSource/index.js +++ b/app/src/main/assets/web/rssSource/index.js @@ -236,7 +236,7 @@ $('.menu').addEventListener('click', e => { let DebugInfos = $('#DebugConsole'); function DebugPrint(msg) { DebugInfos.value += `\n${msg}`; DebugInfos.scrollTop = DebugInfos.scrollHeight; } let saveRule = [rule2json()]; - HttpPost(`/saveRssSources`, saveRule).then(sResult => { + HttpPost(`/saveRssSource`, saveRule[0]).then(sResult => { if (sResult.isSuccess) { $('#DebugConsole').value = `源《${saveRule[0].sourceName}》保存成功!开始调试...`; let ws = new WebSocket(`${wsOrigin}/rssSourceDebug`);