H5纯签约,已申请特权接口,通过域名访问前端页面,调用后台接口,返回微信给的签约跳转地址,window.location.href后,没有任何错误提示,而且形成了循环访问前端页面,这是什么原因?测试手机是红米的内置浏览器
跳转页面如下: 其中url变量是请求 微信纯签约接口https://api.mch.weixin.qq.com/papay/h5entrustweb返回的redirect_url的链接
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>微信支付</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta name="referrer" content="no-referrer-when-downgrade">
<script type="text/javascript" src="/static/lib/jquery-1.11.3.min.js"></script>
</head>
<body>
<input type="hidden" id="url" name="url" th:value="${url}">
<script type="text/javascript">
var url = $("#url").val();
function autoSubmit() {
if (url == null || url == "" || url == 'undefined') {
return false;
}
window.location.href = url;
}
$(function () {
autoSubmit();
});
</script>
</body>
</html>
有解决吗?