no message
This commit is contained in:
parent
3f4d2c3fc4
commit
8061949dd2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user