/** * 魔术方法 * * @param * method 方法名 * @param * args 参数 * */ public function __call($method, $args) { if (0 === strcasecmp($method, 'Callback')) { $this->_before_run(); if (0 == strcmp($this->_method, 'get')) { $this->login(I('param.state'), I('param.code')); } redirect('/Home/ErrorMessage.html?errcode=0'); } else { parent::__call($method, $args); } }