输入banner图图片脚本导航/分类

用tp微信类开发获取不到二维码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=

回复内容:

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=