mirror of
https://github.com/w7corp/easywechat.git
synced 2025-01-22 11:32:08 +00:00
添加卡券二维码
parent
21469a927c
commit
791312a0ce
1
二维码.md
1
二维码.md
@ -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` 为带文件名的目标路径;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user