From 019434da061d796435302e352083615c45ba4e5f Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 15 Jan 2021 15:09:36 +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/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/assets/web/index.js b/app/src/main/assets/web/index.js index 9d09d50de..ba67e7801 100644 --- a/app/src/main/assets/web/index.js +++ b/app/src/main/assets/web/index.js @@ -383,15 +383,15 @@ $('.menu').addEventListener('click', e => { ws.send(`{"tag":"${saveRule[0].bookSourceUrl}", "key":"${sKey}"}`); }; ws.onmessage = (msg) => { - DebugPrint(msg.data == 'finish' ? `\n[${Date().split(' ')[4]}] 调试任务已完成!` : msg.data); - if (msg.data == 'finish') setRule(saveRule[0]); + console.log('[调试]', msg); + DebugPrint(msg.data); }; ws.onerror = (err) => { throw `${err.data}`; } ws.onclose = () => { thisNode.setAttribute('class', ''); - DebugPrint(`[${Date().split(' ')[4]}] 调试服务已关闭!`); + DebugPrint(`\n调试服务已关闭!`); } } else throw `${sResult.errorMsg}`; }).catch(err => {