Skip to content

Commit

Permalink
add getRevEventGeo
Browse files Browse the repository at this point in the history
  • Loading branch information
dodgepudding committed Apr 13, 2014
1 parent cc008e9 commit 28105dc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Thinkphp/Wechat.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,20 @@ public function getRevGeo(){
return false;
}

/**
* 获取上报地理位置事件
*/
public function getRevEventGeo(){
if (isset($this->_receive['Latitude'])){
return array(
'x'=>$this->_receive['Latitude'],
'y'=>$this->_receive['Longitude'],
'precision'=>$this->_receive['Precision'],
);
} else
return false;
}

/**
* 获取接收事件推送
*/
Expand Down
2 changes: 2 additions & 0 deletions wechat.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ public function getRevGeo(){
} else
return false;
}

/**
* 获取上报地理位置事件
*/
Expand All @@ -326,6 +327,7 @@ public function getRevEventGeo(){
} else
return false;
}

/**
* 获取接收事件推送
*/
Expand Down

0 comments on commit 28105dc

Please sign in to comment.