<script type="text/javascript">
// 对浏览器的UserAgent进行正则匹配,不含有微信独有标识的则为其他浏览器
var useragent = navigator.userAgent;
if (useragent.match(/MicroMessenger/i) != 'MicroMessenger') {
// 这里警告框会阻塞当前页面继续加载
var url = window.location.href;
window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid={$_W['account']['key']}&redirect_uri='+url+'&response_type=code&scope=snsapi_base&state=YWN0PW1vZHVsZSZuYW1lPXNob3BwaW5nMiZkbz1saXN0JndlaWQ9Mg==&connect_redirect=1#wechat_redirect';
}
</script>

 

相关文章:

  • 2021-06-14
  • 2021-12-02
  • 2021-11-18
  • 2021-05-16
  • 2021-11-25
  • 2021-10-01
  • 2021-12-29
  • 2022-12-23
猜你喜欢
  • 2021-08-11
  • 2022-12-23
  • 2021-05-19
  • 2022-01-28
  • 2021-11-18
  • 2021-08-27
  • 2022-01-20
相关资源
相似解决方案