Compare commits

..

No commits in common. "e30027083b9bfea5ef7528c22627c8f1aab254b3" and "731f89a205db3df6449026909dcd53d246016834" have entirely different histories.

View File

@ -9,7 +9,6 @@ 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) {
@ -340,9 +339,6 @@ 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]) + '&';
@ -351,18 +347,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 = requestHttpip + url; url = this.httpip + url;
} }
else { else {
url = "https://bx7gi3d4oq.sealoshzh.site/" + url; url = "https://bx7gi3d4oq.sealoshzh.site/" + url;
} }
if (url == requestHttpip + "getAddressRankOther") { if (url == "https://q6rvwvtnga.sealoshzh.site/getAddressRankOther") {
url = "https://laf.nika4games.com/getAddressRank"; url = "https://laf.nika4games.com/getAddressRank";
} }
else if (url == requestHttpip + "getAddressRankSelf") { else if (url == "https://q6rvwvtnga.sealoshzh.site/getAddressRankSelf") {
url = requestHttpip + "getAddressRank"; url = this.httpip + "getAddressRank";
} }
xhr.open("POST", url, true); xhr.open("POST", url, true);