Merge remote-tracking branch 'origin/main'

dev/emitter
Lei OT 10 months ago
commit 149b15f0f8

@ -22,6 +22,7 @@
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git] npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git]
npm version preminor --preid alpha --no-git-tag-version 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 npm version premajor --no-git-tag-version
1.0.0 -> 2.0.0-0 1.0.0 -> 2.0.0-0

@ -5,6 +5,7 @@
// export const API_HOST = 'https://p9axztuwd7x8a7.mycht.cn/whatsapp_144'; // export const API_HOST = 'https://p9axztuwd7x8a7.mycht.cn/whatsapp_144';
// export const WS_URL = 'wss://p9axztuwd7x8a7.mycht.cn/whatsapp_144'; // prod: Slave // export const WS_URL = 'wss://p9axztuwd7x8a7.mycht.cn/whatsapp_144'; // prod: Slave
// TODO: LYJ 正式上线要切换地址
// debug: // debug:
export const API_HOST = 'http://202.103.68.144:8889/v2'; export const API_HOST = 'http://202.103.68.144:8889/v2';
export const WS_URL = 'ws://202.103.68.144:8889'; export const WS_URL = 'ws://202.103.68.144:8889';

@ -88,10 +88,6 @@ function AuthApp() {
}; };
fetchEmailWorker.postMessage({ command: 'fetchEmail', param: { opi_sn: userId } }); fetchEmailWorker.postMessage({ command: 'fetchEmail', param: { opi_sn: userId } });
return fetchEmailWorker; return fetchEmailWorker;
// setInterval(() => {
// // TODO 线
// getEmailFetchAction({opi_sn: userId})
// }, 1000*10)
} }
const uploadLog = () => { const uploadLog = () => {

@ -11,16 +11,14 @@ self.onmessage = (event) => {
const fetchEmails = () => { const fetchEmails = () => {
try { try {
getEmailFetchAction(param); getEmailFetchAction(param);
} catch (error) {} } catch (error) {
timeoutID = setTimeout(fetchEmails, 10 * 1000); // prod: 30 minutes console.error(error)
}
timeoutID = setTimeout(fetchEmails, 60 * 1000);
}; };
// Start fetching emails // Start fetching emails
fetchEmails(); fetchEmails();
// intervalID = setInterval(() => {
// getEmailFetchAction(param)
// }, 10 * 1000) // prod: 30 minutes
// getEmailFetchAction(param)
} }
if (event.data.command === 'logout') { if (event.data.command === 'logout') {
console.log('logout') console.log('logout')

Loading…
Cancel
Save