| 1 | <?php |
||
| 19 | class Ip extends Api |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * 接口地址 |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $address = 'http://apis.baidu.com/apistore/iplookupservice/iplookup?ip='; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Reqeust the api interface, and get the result. |
||
| 30 | * |
||
| 31 | * @param string $ip_address ip string |
||
| 32 | * |
||
| 33 | * @return mixed |
||
| 34 | */ |
||
| 35 | 1 | public function get($ip_address) |
|
| 39 | } |
||
| 40 |