diff --git a/src/js/data.js b/src/js/data.js index 44bf0e0..5b71a04 100644 --- a/src/js/data.js +++ b/src/js/data.js @@ -83,7 +83,7 @@ async function realtime_eew() { async function ntp() { const res = await fetchData( - `https://lb-${Math.ceil(Math.random() * 4)}.exptech.com.tw/ntp` + `https://lb-${Math.ceil(Math.random() * 4)}.exptech.dev/ntp` ); if (res.status === 200) { const data = await res.text(); @@ -131,7 +131,7 @@ async function fetchReplay(url, controller, retries = 3) { async function replay_rts(ts, controller) { const ans_rts = await fetchReplay( - `https://api-2.exptech.com.tw/api/v1/trem/rts/${ts}`, + `https://api-2.exptech.dev/api/v1/trem/rts/${ts}`, controller ); if (!rts_replay_time) return; @@ -147,7 +147,7 @@ async function replay_rts(ts, controller) { async function replay_eew(ts, rt, controller) { const ans_eew = await fetchReplay( - `https://api-2.exptech.com.tw/api/v1/eq/eew/${ts}`, + `https://api-2.exptech.dev/api/v1/eq/eew/${ts}`, controller ); if (!rts_replay_time) return; diff --git a/src/js/setting.js b/src/js/setting.js index 5268edc..eb10c3b 100644 --- a/src/js/setting.js +++ b/src/js/setting.js @@ -461,7 +461,7 @@ const elements = { FormEmail: $("#email"), FormPassword: $("#password"), LoginMsg: $(".login_msg"), - url: "https://api-1.exptech.com.tw/api/v3/et/", + url: "https://api-1.exptech.dev/api/v3/et/", }; function toggleForms(isLogin) { @@ -538,10 +538,10 @@ elements.LogoutBtn.onclick = () => logout(config.setting["user-key"]); elements.FormLogin.onclick = async () => login(elements.FormEmail.value, elements.FormPassword.value); Forget.onclick = () => - ipcRenderer.send("openUrl", "https://exptech.com.tw/forgot"); + ipcRenderer.send("openUrl", "https://exptech.dev/forgot"); BuyVip.onclick = () => - ipcRenderer.send("openUrl", "https://exptech.com.tw/pricing"); + ipcRenderer.send("openUrl", "https://exptech.dev/pricing"); async function getUserInfo(token, retryCount = 0) { try {