#region 将相对路径转绝对路径
/// <summary>
/// 将相对路径转绝对路径
/// </summary>
/// <param name="relatPath">相对路径</param>
/// <param name="infoUrl">详情页路径</param>
/// <returns>返回绝对路径</returns>
public static string AbsoluteUrl(string relatPath, string infoUrl)
{
try
{
Uri bas = new Uri(infoUrl);
Uri abs = new Uri(bas, relatPath);
return abs.AbsoluteUri;
}
catch (Exception)
{
return relatPath;
}
}
#endregion