public function creatCode(){
$wechatAuth=$this->wechatAuth;
$ticket=$wechatAuth->qrcodeCreate('10086');
$src=$wechatAuth->showqrcode($ticket['ticket']);
echo "$src";
//echo "<img src='$src' width='90%'/>";
}
最后输出的是https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=
你打印看下access_token是否获取到,参考网站:微信扫码