load->driver('cache'); // 加载缓存驱动 } public function checklogin() { if($this->input->method(TRUE) != 'POST'){ $this->_json_error('请求方式错误','500'); } $json_str = $this->input->raw_input_stream; $data = json_decode($json_str,true); $this->_json_error('完成校验','200'); } }