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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:07:42
Original
1603 people have browsed it

<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>
Copy after login
Copy after login

最后输出的是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>
Copy after login
Copy after login

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

Related labels:
php
source:php.cn
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template