62 lines
2.0 KiB
C#
62 lines
2.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.SessionState;
|
|
namespace Mtxfw.Utility
|
|
{
|
|
public class CheckWeiXinBase : System.Web.UI.Page
|
|
{
|
|
public int Card = 0, IFStores = 0, gtype=0;
|
|
public string MemberName = "";
|
|
private Mtxfw.Utility.Config config = new Mtxfw.Utility.Config("");
|
|
|
|
protected override void OnLoad(EventArgs e)
|
|
{
|
|
base.OnLoad(e);
|
|
|
|
if (Session["WeiXinMemberId"] != null && Session["WeiXinMemberName"] != null)
|
|
{
|
|
Card = int.Parse(Session["WeiXinMemberId"].ToString());
|
|
if (Session["WeiXinMemberName"] != null)
|
|
{
|
|
MemberName = Session["WeiXinMemberName"].ToString();
|
|
}
|
|
if (Session["WeiXinMemberIFStores"] != null)
|
|
{
|
|
IFStores = int.Parse(Session["WeiXinMemberIFStores"].ToString());
|
|
}
|
|
if (Session["WeiXingtype"] != null)
|
|
{
|
|
gtype = int.Parse(Session["WeiXingtype"].ToString());
|
|
}
|
|
/*if (Session["IFUpUserName"] != null)
|
|
{
|
|
IFUpUserName = int.Parse(Session["IFUpUserName"].ToString());
|
|
if (IFUpUserName == 1)
|
|
{
|
|
if (Request.Url.ToString().ToLower().IndexOf("user_info.aspx") == -1)
|
|
{
|
|
Response.Redirect("/mobile/User_Info.aspx");
|
|
}
|
|
}
|
|
}*/
|
|
}
|
|
else
|
|
{
|
|
string RUrl = Request.Url.ToString();
|
|
Session["returnurl"] = RUrl;
|
|
Response.Redirect("/weixinlogin.aspx");
|
|
}
|
|
}
|
|
|
|
protected String GetWebName
|
|
{
|
|
get
|
|
{
|
|
return config.webName;
|
|
}
|
|
}
|
|
}
|
|
}
|