internal static string GetMemberUrl(String memberUrl, String ownerPath, String memberType) { if (LinkHelper.IsMemberSubdomain(memberType)) { return(sys.Url.SchemeStr + memberUrl + "." + SystemInfo.HostNoSubdomain); } else { return(sys.Url.SchemeStr + Join(SystemInfo.Host, GetMemberUrl(memberType, memberUrl)) + MvcConfig.Instance.UrlExt); } }
//---------------------------------------------------------------------------------------------------------------- public static String ToUserMicroblog(IMember user) { if (LinkHelper.IsMemberSubdomain(typeof(User).FullName)) { return(sys.Url.SchemeStr + user.Url + "." + SystemInfo.HostNoSubdomain + MvcConfig.Instance.UrlSeparator + "t" + MvcConfig.Instance.UrlExt); } else { return(LinkHelper.Join(_app, "t") + MvcConfig.Instance.UrlSeparator + user.Url + MvcConfig.Instance.UrlExt); } }
/// <summary> /// 获取某个注册用户的网址 /// </summary> /// <param name="friendUrl">用户的个性网址</param> /// <returns></returns> public static String ToUser(String friendUrl) { if (LinkHelper.IsMemberSubdomain(ConstString.UserTypeFullName)) { return(sys.Url.SchemeStr + friendUrl + "." + SystemInfo.HostNoSubdomain); } else { return(strUtil.Append(LinkHelper.Join(LinkHelper.AppPath, friendUrl), MvcConfig.Instance.UrlExt)); } }