Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
fix: api url
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrikeasia committed Sep 12, 2024
1 parent 3857ec6 commit 745e4e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/js/setting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 745e4e2

Please sign in to comment.