Commit 1891be27 by 陆志强

feat: 修复支付跳转

parent 6b786315
...@@ -160,10 +160,8 @@ export default { ...@@ -160,10 +160,8 @@ export default {
}); });
if (res.code === 200 && res.errorCode === 0) { if (res.code === 200 && res.errorCode === 0) {
const { tradeType, prepayInfo } = res.data; const { tradeType, prepayInfo } = res.data;
const DEF_SITE = process.client const DEF_SITE = `//${ENV_CONFIG.CUSTOMER_DOMAIN}` + (window.location.protocol.split(":")[0] === "https" ? ENV_CONFIG.HTTPS_PORT : ENV_CONFIG.HTTP_PORT)
? `//${ENV_CONFIG.CUSTOMER_DOMAIN}` + // : `http://${ENV_CONFIG.CUSTOMER_DOMAIN + ENV_CONFIG.HTTP_PORT}`;
(window.location.protocol.split(":")[0] === "https" ? ENV_CONFIG.HTTPS_PORT : ENV_CONFIG.HTTP_PORT)
: `http://${ENV_CONFIG.CUSTOMER_DOMAIN + ENV_CONFIG.HTTP_PORT}`;
if (res.data.url) { if (res.data.url) {
window.location.href = res.data.url; window.location.href = res.data.url;
} else if (tradeType === "MWEB") { } else if (tradeType === "MWEB") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment