添加测试服务器请求地址
This commit is contained in:
parent
e9ec02be41
commit
14eb24f493
|
|
@ -9,6 +9,7 @@ export default class Utils {
|
|||
static outTradeNo: string = "";
|
||||
// static httpip: string = `https://laf.nika4games.com/`; //五彩消消乐
|
||||
static httpip: string = `https://q6rvwvtnga.sealoshzh.site/`; //消消王者
|
||||
static testHttpip: string = `https://sor779u2w8.sealoshzh.site/`; //测试服务器
|
||||
//#region 安卓支付
|
||||
/**获取用户信息*/
|
||||
static getUserInfo(callBack, from?: string) {
|
||||
|
|
@ -339,6 +340,9 @@ export default class Utils {
|
|||
if (test == "正式版") {
|
||||
isDebug = true;
|
||||
}
|
||||
const requestHttpip = test == "开发版" || test == "体验版"
|
||||
? this.testHttpip
|
||||
: this.httpip;
|
||||
param.isDebug = isDebug;
|
||||
Object.keys(param).forEach(key => {
|
||||
dataStr += key + '=' + encodeURIComponent(param[key]) + '&';
|
||||
|
|
@ -347,18 +351,18 @@ export default class Utils {
|
|||
dataStr = dataStr.substr(0, dataStr.lastIndexOf('&'));
|
||||
}
|
||||
if (url != "getSRank" && url != "getRank") {
|
||||
url = this.httpip + url;
|
||||
url = requestHttpip + url;
|
||||
}
|
||||
else {
|
||||
url = "https://bx7gi3d4oq.sealoshzh.site/" + url;
|
||||
}
|
||||
|
||||
|
||||
if (url == "https://q6rvwvtnga.sealoshzh.site/getAddressRankOther") {
|
||||
if (url == requestHttpip + "getAddressRankOther") {
|
||||
url = "https://laf.nika4games.com/getAddressRank";
|
||||
}
|
||||
else if (url == "https://q6rvwvtnga.sealoshzh.site/getAddressRankSelf") {
|
||||
url = this.httpip + "getAddressRank";
|
||||
else if (url == requestHttpip + "getAddressRankSelf") {
|
||||
url = requestHttpip + "getAddressRank";
|
||||
}
|
||||
|
||||
xhr.open("POST", url, true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user