Skip to content

Commit

Permalink
修复自定义渠道二维码错误
Browse files Browse the repository at this point in the history
修复了一个生成永久二维码的错误:如果生成永久二维码而又有'expire_seconds'这个参数的时候,会得到ticket但是无法得到二维码。
  • Loading branch information
leeeboo committed Jan 14, 2014
1 parent 7a79ec8 commit e96e3a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wechat.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,9 @@ public function getQRCode($scene_id,$type=0,$expire=1800){
'expire_seconds'=>$expire,
'action_info'=>array('scene'=>array('scene_id'=>$scene_id))
);
if ($type == 1) {
unset($data['expire_seconds']);
}
$result = $this->http_post(self::API_URL_PREFIX.self::QRCODE_CREATE_URL.'access_token='.$this->access_token,self::json_encode($data));
if ($result)
{
Expand Down

0 comments on commit e96e3a3

Please sign in to comment.