修改返回国家全部信息

master
Jimmy Liow 2 years ago
parent 1cb727cb7e
commit ac1bd0d55d

@ -34,7 +34,7 @@ class Index extends CI_Controller
$ip_number = $this->Dot2LongIP($data['ip_address']);
$country = $this->Ip2location_db1_model->get_country_by_ip($ip_number);
$country['ip_address'] = $data['ip_address'];
echo json_encode($data);
echo json_encode($country);
}
/**

Loading…
Cancel
Save