no message

This commit is contained in:
A1300399510 2024-11-04 16:40:52 +08:00
parent 3f4d2c3fc4
commit 8061949dd2

View File

@ -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