做了一个后台微信登录模板,想请教一下,有没有支持的登录接口代码
使用前端的微信登录代码,不会跳转的
<script type="text/javascript">
function countSecond(){
$.get("/index.php/p/login-scan-cklogin.html?"+Math.random(), function(data){
if(data=='ok'){
window.location.href="/index.php/p/login-scan-cklogin.html?type=success";
}else{
setTimeout("countSecond()",2000);
}
});
}
countSecond()
</script>

<script type="text/javascript">
function countSecond(){
$.get("/index.php/p/login-scan-cklogin.html?"+Math.random(), function(data){
if(data=='ok'){
window.location.href="/index.php/p/login-scan-cklogin.html?type=success";
}else{
setTimeout("countSecond()",2000);
}
});
}
countSecond()
</script>