添加卡券二维码

overtrue 2015-04-24 18:37:50 +08:00
parent 21469a927c
commit 791312a0ce

@ -23,6 +23,7 @@ $qrcode = new QRCode($appId, $secret);
+ `Bag temporary($sceneId, $expireSeconds = null)` 创建临时二维码;
+ `Bag forever($sceneValue, $type = self::SCENE_QR_FOREVER)` 创建永久二维码,`$type`: `QR_LIMIT_SCENE` 为永久, `QR_LIMIT_STR_SCENE` 为永久的字符串参数值;
+ `Bag card(array $card)` 创建卡券二维码
+ `string show($ticket)` 获取二维码网址,用法: `<img src="<?php $qrcode->show($qrTicket); ?>">`
+ `void download($ticket, $filename)` 下载二维码到本地,`$filename` 为带文件名的目标路径;