首次推送
This commit is contained in:
52
Mtxfw.shop/Controls/Left.ascx.cs
Normal file
52
Mtxfw.shop/Controls/Left.ascx.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user