52 lines
1.8 KiB
C#
52 lines
1.8 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Web.UI;
|
|||
|
|
using System.Web.UI.WebControls;
|
|||
|
|
|
|||
|
|
namespace Mtxfw.shop.Controls
|
|||
|
|
{
|
|||
|
|
public partial class Left : System.Web.UI.UserControl
|
|||
|
|
{
|
|||
|
|
public int IFBecomeBusiness = 0, IFBecomeAgents = 0;
|
|||
|
|
public Mtxfw.DAL.user_info daoUser = new Mtxfw.DAL.user_info();
|
|||
|
|
public int Card = 0, uLevel = 0, uLevel2 = 0, IFStores=0;
|
|||
|
|
public Double umoney11 = 0;
|
|||
|
|
public string strinvite = "";
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
if (Session["MemberId"] != null)
|
|||
|
|
{
|
|||
|
|
Card = int.Parse(Session["MemberId"].ToString());
|
|||
|
|
/*string IFApp = "0";
|
|||
|
|
string str_u = Request.ServerVariables["HTTP_USER_AGENT"];
|
|||
|
|
if (str_u.IndexOf("MicroMessenger") != -1 && str_u.IndexOf("MQQBrowser") != -1)
|
|||
|
|
{
|
|||
|
|
//微信访问
|
|||
|
|
IFApp = "1";
|
|||
|
|
}
|
|||
|
|
if (IFApp == "1")
|
|||
|
|
{
|
|||
|
|
strinvite = "?invieuser=" + Card;
|
|||
|
|
}*/
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
string RUrl = Request.Url.ToString();
|
|||
|
|
Response.Cookies.Add(new HttpCookie("{RUrl}", RUrl));
|
|||
|
|
Response.Cookies["{RUrl}"].Expires = DateTime.Now.AddDays(1);
|
|||
|
|
Session["returnurl"] = RUrl;
|
|||
|
|
}
|
|||
|
|
Mtxfw.Model.user_info model = daoUser.GetModel(Card);
|
|||
|
|
if (model != null)
|
|||
|
|
{
|
|||
|
|
IFBecomeBusiness = model.IFBecomeBusiness;
|
|||
|
|
IFBecomeAgents = model.IFBecomeAgents;
|
|||
|
|
uLevel = model.uLevel;
|
|||
|
|
uLevel2 = model.uLevel2;
|
|||
|
|
umoney11 = model.umoney11;
|
|||
|
|
IFStores = model.IFStores;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|