login.php 419 B

12345678
  1. <?php
  2. $appid = 'wxf0c41cb7eaf468e1';
  3. #你的公众号appid
  4. $url="https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri=https%3a%2f%2fenber.63tv.cn%2fcallback.php&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";
  5. //$url='/login.html';
  6. #redirect_uri改为你的网页授权域名和刚刚跳转到的显示页面,比如我的是getinfoDetail.php
  7. header('location:'.$url);
  8. ?>