diff --git a/README.md b/README.md index f180198..a513f35 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ npm version [ | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git] npm version preminor --preid alpha --no-git-tag-version +npm version preminor --preid beta --no-git-tag-version npm version premajor --no-git-tag-version 1.0.0 -> 2.0.0-0 diff --git a/src/config.js b/src/config.js index 01cdccd..f540cb2 100644 --- a/src/config.js +++ b/src/config.js @@ -5,6 +5,7 @@ // export const API_HOST = 'https://p9axztuwd7x8a7.mycht.cn/whatsapp_144'; // export const WS_URL = 'wss://p9axztuwd7x8a7.mycht.cn/whatsapp_144'; // prod: Slave +// TODO: LYJ 正式上线要切换地址 // debug: export const API_HOST = 'http://202.103.68.144:8889/v2'; export const WS_URL = 'ws://202.103.68.144:8889'; diff --git a/src/views/AuthApp.jsx b/src/views/AuthApp.jsx index e663b5d..9eca721 100644 --- a/src/views/AuthApp.jsx +++ b/src/views/AuthApp.jsx @@ -88,10 +88,6 @@ function AuthApp() { }; fetchEmailWorker.postMessage({ command: 'fetchEmail', param: { opi_sn: userId } }); return fetchEmailWorker; - // setInterval(() => { - // // TODO 正式上线要修改间隔时间 - // getEmailFetchAction({opi_sn: userId}) - // }, 1000*10) } const uploadLog = () => { diff --git a/src/workers/fetchEmailWorker.js b/src/workers/fetchEmailWorker.js index 3fc32c4..2fc3d73 100644 --- a/src/workers/fetchEmailWorker.js +++ b/src/workers/fetchEmailWorker.js @@ -11,16 +11,14 @@ self.onmessage = (event) => { const fetchEmails = () => { try { getEmailFetchAction(param); - } catch (error) {} - timeoutID = setTimeout(fetchEmails, 10 * 1000); // prod: 30 minutes + } catch (error) { + console.error(error) + } + timeoutID = setTimeout(fetchEmails, 60 * 1000); }; // Start fetching emails fetchEmails(); - // intervalID = setInterval(() => { - // getEmailFetchAction(param) - // }, 10 * 1000) // prod: 30 minutes - // getEmailFetchAction(param) } if (event.data.command === 'logout') { console.log('logout')