From 87c5f7802e6027be904546f9653f56e6d7b11a31 Mon Sep 17 00:00:00 2001 From: poko Date: Thu, 25 Apr 2024 00:28:27 +0800 Subject: [PATCH] update: route HostUrl change from lb-* to api./api-*/ --- src/scripts/class/route.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scripts/class/route.ts b/src/scripts/class/route.ts index 3964684..8a929d6 100644 --- a/src/scripts/class/route.ts +++ b/src/scripts/class/route.ts @@ -13,7 +13,11 @@ export default class Route { } randomHostUrl() { - return `https://lb-${Math.ceil(Math.random() * 4)}.exptech.com.tw` as const; + if (Math.random() < 0.5) { + return `https://api.exptech.com.tw` as const; + } else { + return `https://api-${Math.ceil(Math.random() * 2)}.exptech.com.tw` as const; + } } randomBaseUrl() {