塔罗:修改访问页面域名

This commit is contained in:
Dragon
2023-03-23 20:40:06 +08:00
parent 3a309d63a5
commit f5ad57fd3d

View File

@@ -494,12 +494,12 @@ $(function () {
// 调用原生支付
function toWxAppPay (data, chargeRecordId) {
console.log('--------');
data.url = urlPrefix + `/yinmeng/modules/tarot/payment_result.html?chargeRecordId=${chargeRecordId}`;
data.url = tranUrl + `/yinmeng/modules/tarot/payment_result.html?chargeRecordId=${chargeRecordId}`;
console.log(data);
const browser = checkVersion();
if (browser.app) {
if (browser.android) {
window.androidJsObj.openNativeTarotPay(JSON.stringify(data), urlPrefix + `/yinmeng/modules/tarot/payment_result.html?chargeRecordId=${chargeRecordId}`);
window.androidJsObj.openNativeTarotPay(JSON.stringify(data), tranUrl + `/yinmeng/modules/tarot/payment_result.html?chargeRecordId=${chargeRecordId}`);
} else {
window.webkit.messageHandlers.openNativeTarotPay.postMessage(data);;
}