/// <summary>
/// 獲取當前用戶客戶端ip
/// </summary>
/// <returns></returns>
private string GetCurrentUserIp()
{
string userIP;
userIP = System.Web.HttpContext.Current.Request.ServerVariables["HTTP_VIA"] == null ? System.Web.HttpContext.Current.Request.UserHostAddress : System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
return userIP;
}
