Commit 7ae6943f authored by 黄奎's avatar 黄奎

页面修改

parent 8baabe39
......@@ -145,5 +145,4 @@ namespace Mall.Common
return result;
}
}
}
}
\ No newline at end of file
......@@ -13,67 +13,6 @@ namespace Mall.Common.Plugin
/// </summary>
public class IPHelper
{
///// <summary>
///// 获取真实IP地址
///// </summary>
///// <returns></returns>
//public static string GetClientIP()
//{
// return GetClientIP(HttpContext.Current);
//}
///// <summary>
///// 获取客户端IP地址
///// </summary>
///// <param name="context"></param>
///// <returns></returns>
//private static string GetClientIP(HttpContext context)
//{
// string text = string.Empty;
// text = context.Request.ServerVariables["HTTP_CDN_SRC_IP"];
// if (!string.IsNullOrEmpty(text) && IsIPAddress(text) && !IsInnerIP(text))
// {
// return text;
// }
// text = context.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
// if (!string.IsNullOrEmpty(text))
// {
// if (text.IndexOf(".") < -1)
// {
// text = null;
// }
// else if (text.IndexOf(",") > -1 || text.IndexOf(";") > -1)
// {
// text = text.Replace(" ", "").Replace("'", "").Replace("\"", "");
// string[] array = text.Split(",;".ToCharArray());
// for (int i = 0; i < array.Length; i++)
// {
// if (IsIPAddress(array[i]) && !IsInnerIP(array[i]))
// {
// return array[i];
// }
// }
// }
// else
// {
// if (IsIPAddress(text) && !IsInnerIP(text))
// {
// return text;
// }
// text = null;
// }
// }
// if (string.IsNullOrEmpty(text))
// {
// text = context.Request.ServerVariables["REMOTE_ADDR"];
// }
// if (string.IsNullOrEmpty(text))
// {
// text = context.Request.UserHostAddress;
// }
// return text;
//}
/// <summary>
/// 判断是否是IP地址
/// </summary>
......@@ -149,4 +88,4 @@ namespace Mall.Common.Plugin
return (userIp >= begin) && (userIp <= end);
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment