diff --git a/redPackets.html b/redPackets.html index 8c375d3..d4b9c18 100644 --- a/redPackets.html +++ b/redPackets.html @@ -134,7 +134,7 @@ /* 根据环境进行下一步操作 1 支付宝 2 微信 */ judgeEnvironment (order_number, weiXinUrl) { if (this.goodsInfo.entity.channel === 1) { - const aliPaysUrl = `alipays://platformapi/startapp?appId=2021004100663111&page=pages/index/index?order_number=${encodeURIComponent(order_number)}`; + const aliPaysUrl = `alipays://platformapi/startapp?appId=2021004100663111&page=pages/index/index?order_number=${encodeURIComponent(window.btoa(order_number))}`; var ua = window.navigator.userAgent.toLowerCase(); /* 判断如果是微信/安卓百度浏览器 则复制链接 */ if (isWx() || (ua.indexOf("android") > -1 && ua.indexOf("baiduboxapp") > -1) || ua.indexOf("windows") > -1) {