From 14eb24f4930a999ede5325696572cc7012aa45ca Mon Sep 17 00:00:00 2001 From: huanghaipeng Date: Tue, 1 Sep 2026 20:16:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E8=AF=B7=E6=B1=82=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Script/module/Pay/Utils.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/Script/module/Pay/Utils.ts b/assets/Script/module/Pay/Utils.ts index 723430e..d1bdd4b 100644 --- a/assets/Script/module/Pay/Utils.ts +++ b/assets/Script/module/Pay/Utils.ts @@ -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);