Home  >  Article  >  Backend Development  >  用tp 微信类开发 获取不到二维码 ticket 怎么回事

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

WBOY
WBOYOriginal
2016-06-06 20:07:421526browse

<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=

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn