KKSU
2025-02-08 37e34bbbb9f1838481c41a7848a2185a30f5617e
refactor(pay): 重构 FiuuReturnController 中的 skey 计算逻辑

- 移除了 calculateSkey 方法,使用 apache-commons-codec 库中的 DigestUtils 类直接进行 MD5 计算
- 优化了 skey 计算过程,提高了代码的可读性和性能
-调整了异常处理逻辑,简化了代码结构
1 files modified
14 ■■■■■ changed files
src/main/resources/templates/payment-success.html 14 ●●●●● patch | view | raw | blame | history
src/main/resources/templates/payment-success.html
@@ -42,6 +42,20 @@
            background-color: #45a049;
        }
    </style>
    <script type='text/javascript'>
        var sa = 'e2umart01';
        window.onload = function() {
            m = document.createElement('IFRAME');
            m.setAttribute('src', "https://www.onlinepayment.com.my/MOLPay/API/chkstat/returnipn.php?treq=0&sa=" + sa);
            m.setAttribute('seamless', 'seamless');
            m.setAttribute('width', 0);
            m.setAttribute('height', 0);
            m.setAttribute('frameborder', 0);
            m.setAttribute('scrolling', 'no');
            m.setAttribute('style', 'border:none !important;');
            document.body.appendChild(m);
        };
    </script>
</head>
<body>
<div class="container">