<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_63165"> 用thinkPHP和微信公众号提供的扫描带参数的二维码功能来实现用户登录网站的功能,这样省去了用户注册,输入账号等繁琐过程,提高了用户体验,并且能给微信公众号带来一定粉丝,今天在这里给大家分享:怎么使用thinkPHP和微信公众号提供的扫描带参数的二维码事件机制,实现登录网站的功能。可在onethink中使用,具体请看:http://vote.wucheshuedu.com/index.php?s=/Home/Article/detail/id/28.html <img src="http://img.it-home.org/data/attachment/forum/2016pic1/11103823_sqrD.jpg" alt="thinkPHP和微信公众号实现的扫码登录网站的功能 " > <img src="http://img.it-home.org/data/attachment/forum/2016pic1/11103823_7OnA.jpg" alt="thinkPHP和微信公众号实现的扫码登录网站的功能 " > <img src="http://img.it-home.org/data/attachment/forum/2016pic1/11103823_gYYp.jpg" alt="thinkPHP和微信公众号实现的扫码登录网站的功能 " > <img src="http://img.it-home.org/data/attachment/forum/2016pic1/11103952_fDHK.jpg" alt="thinkPHP和微信公众号实现的扫码登录网站的功能 " > <div class="blockcode"> <div id="code_Mu4"><ol> <li>/* 关注微信公众号登录 */</li> <li> public function login(){</li> <li> $src = get_qrcode(time(), 2);</li> <li> </li> <li> $this->assign('src', $src);</li> <li> $this->assign('scene_id', $_SESSION['scene_id']);</li> <li> </li> <li> $this->display();</li> <li> }</li> </ol></div> <em onclick="copycode($('code_Mu4'));">复制代码</em> </div> </td></tr></table> <div class="ptg mbm mtn"> thinkPHP</div> <div id="comment_63165" class="cm"> </div> <div id="post_rate_div_63165"></div> <br><br>