From 8061949dd2633378fbc1e41b84327f88b62918ce Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Mon, 4 Nov 2024 16:40:52 +0800 Subject: [PATCH] no message --- js/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/common.js b/js/common.js index 0e23cdd..ca28c4a 100644 --- a/js/common.js +++ b/js/common.js @@ -1,4 +1,4 @@ -const baseURL = "https://offer.gter.net" +const projectBaseURL = "https://offer.gter.net" if (["localhost", "127.0.0.1"].includes(location.hostname)) { axios.defaults.headers = { "Authorization": "i0pmeq8tsx1orf5q8ywr5p0p4nr1j6b4", @@ -7,7 +7,7 @@ if (["localhost", "127.0.0.1"].includes(location.hostname)) { function $ajax(url) { var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {} - url = url.indexOf("https://") > -1 ? url : baseURL + url + url = url.indexOf("https://") > -1 ? url : projectBaseURL + url data["authorization"] = "i0pmeq8tsx1orf5q8ywr5p0p4nr1j6b4" @@ -32,7 +32,7 @@ function $ajax(url) { } function $ajaxget(url, data) { - url = url.indexOf("https://") > -1 ? url : baseURL + url + url = url.indexOf("https://") > -1 ? url : projectBaseURL + url url += objectToQueryString(data) return new Promise(function (resolve, reject) { axios