当前位置:Gxlcms > PHP教程 > 用tp微信类开发获取不到二维码ticket怎么回事

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

时间:2021-07-01 10:21:17 帮助过:5人阅读

public function creatCode(){
        $wechatAuth=$this->wechatAuth;
    
        $ticket=$wechatAuth->qrcodeCreate('10086');
        
        https://www.gxlcms.com/$src=$wechatAuth->showqrcode($ticket['ticket']);
        echo "https://www.gxlcms.com/$src";
        //echo "";
    }

最后输出的是https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=

回复内容:

public function creatCode(){
        $wechatAuth=$this->wechatAuth;
    
        $ticket=$wechatAuth->qrcodeCreate('10086');
        
        https://www.gxlcms.com/$src=$wechatAuth->showqrcode($ticket['ticket']);
        echo "https://www.gxlcms.com/$src";
        //echo "";
    }

最后输出的是https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=

人气教程排行