=> 'ro', ); has _row => ( is => 'lazy', default => sub { my $self = shift; my $db = MyApp->context->db; # Teng my $row = $db->single('player', { id => $self->id }); return $row; }; ); sub userinfo { my $self = shift; my $hash = $self->_row->get_columns; delete $hash->{api_token}; # ΈΜͳʹφΠγϣͩΑ return $hash; }