Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string state  = Request.QueryString["state"];
            string ticket = Request.QueryString["ticket"];
            string jump   = Request.QueryString["jump"];
            string openid = Request.QueryString["openid"];

            try
            {
                Hmj.Entity.Callback cb = new Entity.Callback();
                cb.FromUserName = openid;
                if (!string.IsNullOrWhiteSpace(state))
                {
                    cb.State = int.Parse(state);
                }
                else
                {
                    cb.State = 0;
                }
                cb.Jump       = jump;
                cb.Ticket     = ticket;
                cb.CreateTime = DateTime.Now;
                MySmallShopService mss = new MySmallShopService();
                mss.SaveCallback(cb);
            }
            catch (Exception ex)
            {
                log.Error("盛时登录回传:" + ex.Message);
            }

            Response.Redirect("www.censh.com");
        }