diff --git a/src/Wechat/QRCode.php b/src/Wechat/QRCode.php index d843628a9..b73a3b44e 100644 --- a/src/Wechat/QRCode.php +++ b/src/Wechat/QRCode.php @@ -141,7 +141,7 @@ public function card($card, $temporary = true, $expireSeconds = null) */ public function show($ticket) { - return self::API_SHOW."?ticket={$ticket}"; + return sprintf('%s?ticket=%s', self::API_SHOW, urlencode($ticket)); } /**