用tp 微信类开发 获取不到二维码 ticket 怎么回事
程序员文章站
2022-03-09 19:33:38
...
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=
上一篇: 对于JS模块化的解析