hasIdentity()) { $user = $auth->getIdentity(); echo ' '.$user->username.' '; if ($user->usertype == $this->config->auth->identifier) { echo ' 后台 '; } echo ' 数据篮 '; echo '退出'; } else { echo '登 录  |  注 册'; } ?>