/// <summary> /// 获取根目录 /// </summary> /// <param name="req"></param> /// <returns></returns> public static string GetBaseUrl(this HttpRequest req) { return(RequestHelper.GetBaseUrl(req)); }
/// <summary> /// 获取IP /// </summary> public static string Ip(this HttpContext context) { return(RequestHelper.GetCurrentIpAddress(context.Request)); }
/// <summary> /// 是否是ajax /// </summary> /// <param name="req"></param> /// <returns></returns> public static bool IsAjax(this HttpRequest req) { return(RequestHelper.IsAjax(req)); }
public static string Ip(this HttpRequest req) { return(RequestHelper.GetCurrentIpAddress(req)); }