添加测试服务器请求地址

This commit is contained in:
huanghaipeng 2026-09-01 20:16:06 +08:00
parent e9ec02be41
commit 14eb24f493

View File

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