public function queryCountry()
{
$ipAddress = Utils::getUserIP();
$ch = curl_init();
$url = 'http://ip.taobao.com/service/getIpInfo.php?ip=' . $ipAddress;
// 执行HTTP请求
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$res = curl_exec($ch);
echo $res;
exit;
}