Heim >Backend-Entwicklung >PHP-Tutorial >用tp 微信类开发 获取不到二维码 ticket 怎么回事
<code>public function creatCode(){ $wechatAuth=$this->wechatAuth; $ticket=$wechatAuth->qrcodeCreate('10086'); $src=$wechatAuth->showqrcode($ticket['ticket']); echo "$src"; //echo "<img src="%24src" style="max-width:90%" alt="用tp 微信类开发 获取不到二维码 ticket 怎么回事 " >"; }</code>
最后输出的是https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=
<code>public function creatCode(){ $wechatAuth=$this->wechatAuth; $ticket=$wechatAuth->qrcodeCreate('10086'); $src=$wechatAuth->showqrcode($ticket['ticket']); echo "$src"; //echo "<img src="%24src" style="max-width:90%" alt="用tp 微信类开发 获取不到二维码 ticket 怎么回事 " >"; }</code>
最后输出的是https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=