public static BaseUserEntity GetObjectByNickNameByCache(BaseUserInfo userInfo, string nickName) { BaseUserEntity result = null; if (string.IsNullOrEmpty(nickName)) { return(result); } string key = "User:ByNickName:" + nickName.ToLower(); result = BaseUserManager.GetObjectByNickNameByCache(key); // 远程通过接口获取数据 if (result == null) { result = GetObjectByNickName(userInfo, nickName); } return(result); }