信呼OA版本v2.3.8
This commit is contained in:
13
include/chajian/mapqqChajian.php
Normal file
13
include/chajian/mapqqChajian.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
class mapqqChajian extends Chajian{
|
||||
|
||||
private $mapqqkey = 'I3EBZ-TYP6F-RGZJI-J3W3V-ERKDT-PTBK4';
|
||||
|
||||
public function geocoder($location)
|
||||
{
|
||||
$url = 'http://apis.map.qq.com/ws/geocoder/v1/?location='.$location.'&coord_type=5&key='.$this->mapqqkey.'';
|
||||
$result = c('curl')->getcurl($url);
|
||||
|
||||
echo $result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user