diff --git a/front/templates/payPage.html b/front/templates/payPage.html
index 0fafebf..80d0691 100644
--- a/front/templates/payPage.html
+++ b/front/templates/payPage.html
@@ -343,7 +343,8 @@
// 页面加载时执行
// 监听页面可见性变化
document.addEventListener('visibilitychange', function() {
- if (!document.hidden && localStorage.getItem('auto-redirect') == 1) {
+ alert('111')
+ if (!document.hidden && localStorage.getItem('auto-redirect') == 2) {
// 页面从后台返回且处于支付状态
handlePaymentCallback();
}