pull/1395/head
gedoor 3 years ago
parent b240ea25b5
commit 6303d56885
  1. 5
      app/src/main/assets/web/rssSource/index.js

@ -238,11 +238,10 @@ $('.menu').addEventListener('click', e => {
let saveRule = [rule2json()]; let saveRule = [rule2json()];
HttpPost(`/saveRssSources`, saveRule).then(sResult => { HttpPost(`/saveRssSources`, saveRule).then(sResult => {
if (sResult.isSuccess) { if (sResult.isSuccess) {
let sKey = DebugKey.value ? DebugKey.value : '我的'; $('#DebugConsole').value = `源《${saveRule[0].sourceName}》保存成功!开始调试...`;
$('#DebugConsole').value = `源《${saveRule[0].sourceName}》保存成功!使用搜索关键字“${sKey}”开始调试...`;
let ws = new WebSocket(`${wsOrigin}/rssSourceDebug`); let ws = new WebSocket(`${wsOrigin}/rssSourceDebug`);
ws.onopen = () => { ws.onopen = () => {
ws.send(`{"tag":"${saveRule[0].sourceUrl}", "key":"${sKey}"}`); ws.send(`{"tag":"${saveRule[0].sourceUrl}", "key":""}`);
}; };
ws.onmessage = (msg) => { ws.onmessage = (msg) => {
console.log('[调试]', msg); console.log('[调试]', msg);

Loading…
Cancel
Save