mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-11-13 22:23:44 +08:00
1. 开发文档加载速度优化
2. 浏览器跳转支付宝异常修复
This commit is contained in:
@@ -305,9 +305,10 @@
|
||||
openAppBtn.className = 'layui-btn layui-btn-normal';
|
||||
openAppBtn.onclick = function () {
|
||||
if (codeType == 0) {
|
||||
window.location.href = 'alipays://platformapi/startapp?appId=20000067&&url=' + payCode;
|
||||
const payUrl = encodeURIComponent(payCode);
|
||||
window.location.href = 'alipays://platformapi/startapp?appId=20000067&&url=' + payUrl;
|
||||
} else {
|
||||
const currentUrl = window.location.href;
|
||||
const currentUrl = encodeURIComponent(window.location.href);
|
||||
window.location.href = 'alipays://platformapi/startapp?appId=20000067&&url=' + currentUrl;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user