Web/App_Code/UserHelp.cs
(开头部分) 19KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using WMPT.SQLServerDAL;
using WMPT.Model;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using WMPT.Common;
/// <summary>
///UserHelp 的摘要说明
/// </summary>
public static class UserHelp
{
private const string LONGIN_URL = "~/Login.aspx?returnurl={0}";
private const string LONGIN_URL_TOGO = "~/tLogin.aspx?returnurl={0}";
private const string LONGIN_DEFAULT = "~/Index.aspx";
private const string SESSION_USER = "Hangjing_xcustomer";
private const string SESSION_TOGO = "Hangjing_togo";
private const string COOKIE_NAME = "Hangjing_xuser";
private const string COOKIE_TOGO = "Hangjing_togo";
private const string SECRET_KEY = "qwertvbnm";
private const string COOKIE_ADMIN = "Hangjing_cadmin";
private const string SESSION_ADMIN = "Hangjing_xadmin";
private const string COOKIE_DELIVERCOMPANY_ADMIN = "COOKIE_DELIVERCOMPANY_ADMIN";
#region 会员中心代码
/// <summary>
/// 登录后的设置
/// </summary>
/// <param name="userinfo">UserInfo</param>
/// <param name="url">登录后跳转的URL</param>
public static void SetLogin(WMPT.Model.ECustomerInfo customer, string url)
{
SetSession(customer);
SetCookieMemary(customer);
if (string.IsNullOrEmpty(url))
{
HttpContext.Current.Response.Redirect(LONGIN_DEFAULT);
}
HttpContext.Current.Response.Redirect(url);
}
/// <summary>
/// 登录后的设置
/// </summary>
后面还有 542 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
