根据当前ip地址获取地理位置
public function get_position(){ $ip = $_SERVER['REMOTE_ADDR']; if(empty($ip)){ x_json( 0,'缺少用户ip'); } $url = 'http://ip.taobao.com/service/getIpInfo.php?ip=...