header('authorization'); $info = Redis::get(substr($token, 7)); if(empty($info)) { throw new AuthenticationException('Unauthenticated.'); } $info = json_decode($info, true); $this->open_id = $info['open_id'] ?? ''; $this->union_id = $info['union_id'] ?? ''; $this->session_key = $info['session_key'] ?? ''; } }