1. 开发文档加载速度优化

2. 浏览器跳转支付宝异常修复
This commit is contained in:
技术老胡 2025-03-19 23:17:58 +08:00
parent 374fc75423
commit ee49c2a0d0
2 changed files with 3 additions and 4 deletions

View File

@ -8,8 +8,6 @@
<head>
<title>开发文档</title>
</head>
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/gh/pandao/editor.md@1.5.0/css/editormd.min.css">
<style type="text/css">
body {
font-family: "Helvetica Neue", "Helvetica", "Microsoft Yahei", "微软雅黑", "Lantinghei SC", "STXihei", "WenQuanYi Micro Hei", Arial, sans-serif;

View File

@ -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;
}
};