update WeChat/Qrcode.php.

通过ticket换取二维码(ticket应该加urlencode)否则某些情况下可能换取失败



Signed-off-by: pkkgu <910111100@qq.com>
This commit is contained in:
pkkgu 2022-08-22 07:06:33 +00:00 committed by Gitee
parent 7a428869df
commit 634278d1ae
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -57,7 +57,7 @@ class Qrcode extends BasicWeChat
*/ */
public function url($ticket) public function url($ticket)
{ {
return "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket={$ticket}"; return "https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=".urlencode($ticket);
} }
/** /**