用tp 微信类开发 获取不到二维码 ticket 怎么回事
程序员文章站
2022-03-28 17:09:58
...
public function creatCode(){
$wechatAuth=$this->wechatAuth;
$ticket=$wechatAuth->qrcodeCreate('10086');
$src=$wechatAuth->showqrcode($ticket['ticket']);
echo "$src";
//echo "";
}
最后输出的是https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=
回复内容:
public function creatCode(){
$wechatAuth=$this->wechatAuth;
$ticket=$wechatAuth->qrcodeCreate('10086');
$src=$wechatAuth->showqrcode($ticket['ticket']);
echo "$src";
//echo "";
}
最后输出的是https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=