Skip to content

Commit 51ed9ee

Browse files
committed
Merge pull request dodgepudding#266 from 1212e/master
更新临时二维码有效期最大值为 604800 秒
2 parents 76b7008 + 4a9d69f commit 51ed9ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wechat.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,10 +2031,10 @@ public function queryMassMessage($msg_id){
20312031
* 创建二维码ticket
20322032
* @param int|string $scene_id 自定义追踪id,临时二维码只能用数值型
20332033
* @param int $type 0:临时二维码;1:永久二维码(此时expire参数无效);2:永久二维码(此时expire参数无效)
2034-
* @param int $expire 临时二维码有效期,最大为1800秒
2035-
* @return array('ticket'=>'qrcode字串','expire_seconds'=>1800,'url'=>'二维码图片解析后的地址')
2034+
* @param int $expire 临时二维码有效期,最大为604800秒
2035+
* @return array('ticket'=>'qrcode字串','expire_seconds'=>604800,'url'=>'二维码图片解析后的地址')
20362036
*/
2037-
public function getQRCode($scene_id,$type=0,$expire=1800){
2037+
public function getQRCode($scene_id,$type=0,$expire=604800){
20382038
if (!$this->access_token && !$this->checkAuth()) return false;
20392039
$type = ($type && is_string($scene_id))?2:$type;
20402040
$data = array(

0 commit comments

Comments
 (0)