search

Home  >  Q&A  >  body text

php - 用tp 微信类开发 获取不到二维码 ticket 怎么回事

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=

PHP中文网PHP中文网2816 days ago244

reply all(1)I'll reply

  • 黄舟

    黄舟2017-04-10 17:48:35

    你打印看下access_token是否获取到,参考网站:微信扫码

    reply
    0
  • Cancelreply