网页授权+获取用户基本信息+强制关注+JSSDK分享参数 //支付宝红包口令列表 public function view(){ $openid = ""; Vendor('Weixin.weixinclass'); $weixin = new \weixin(); if (!isset($_GET["code"])){ $redirect_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];…
<script> var code = GetQueryString('code'); var callback = 'personal.html'; var appId = "wx70c81e11981cab3d"; var redirect_uri = window.location.origin + window.location.pathname; var wx_link = 'https://open.weixin.qq.com/connect/oauth2/au…