goja-web/src/main/java/goja/security/goja/SecurityKit.java
private static CookieUser getUserFromCookie(HttpServletRequest req) {
        try {
            Cookie cookie = Requests.getCookie(req, COOKIE_LOGIN);
            if (cookie != null && StringUtils.isNotBlank(cookie.getValue())) {
                return userForCookie(cookie.getValue(), req);
            }
        } catch (Exception ignored) {
        }
        return null;
    }
private static CookieUser getUserFromCookie(HttpServletRequest req) {
        try {
            Cookie cookie = Requests.getCookie(req, COOKIE_LOGIN);
            if (cookie != null && StringUtils.isNotBlank(cookie.getValue())) {
                return userForCookie(cookie.getValue(), req);
            }
        } catch (Exception ignored) {
        }
        return null;
    }
private static CookieUser getUserFromCookie ( HttpServletRequest req ) { try { Cookie cookie = Requests . getCookie ( req , COOKIE_LOGIN ) ; if ( cookie != null && StringUtils . isNotBlank ( cookie . getValue ( ) ) ) { return userForCookie ( cookie . getValue ( ) , req ) ; } } catch ( Exception ignored ) { } return null ; }
从cookie中读取保存的用户信息

@param req requeset 请求
@return 用户信息
从cookie中读取保存的用户信息