/// <summary> /// 验证用户页面请求 /// </summary> /// <param name="key"></param> /// <returns></returns> public static bool CheckRequest(string key) { string s = key + Utils.GetRealIP() + "joycp.net"; s = SecurityUtil.Md5(s); if (string.Compare(s, JRequest.GetString("key"), true) != 0) { return(false); } return(true); }
/// <summary> /// 获取用户请求的真实 IP. /// </summary> /// <returns></returns> /// <remarks></remarks> public static string GetRealIP() { return(JRequest.GetIP()); }