public function checkAuth($state, $code, $msg = null) { Log::recode($this->uid, $this->name, $this->module, $this->method, $this->key, $state); if ($code !== Config::RETURN_NORMAL) { $this->code = $code; $this->msg = $msg; exit; } }