控制器中
$this->load->helper('captcha');$ip = $this->input->ip_address();
//$check_ip_address = $this->User_model->check_ip_address($res['uid']);
//$ip_info是一个对象country province city 存入数据库
$this->User_model->getipaddress($ip,$res);
控制器中
$this->load->helper('captcha');$ip = $this->input->ip_address();