/** * 登录后的session */ public function auth() { $auth = Auth::getInstance(); if ($auth->hasIdentity()) { return $auth->getIdentity(); } else { return false; } }