EasyShop/login.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyModels;
using System.Data;
using conn;
using Common;
using ExeSql;
using BLL;
using System.Configuration;
namespace EasyShop
{
    public partial class login : System.Web.UI.Page
    {
        public string jsString = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                MyCookie.setCookie("UserID", "");
            }
            string type = Common.GetMes.GetRequestQuery(Request, "type");
            if (!string.IsNullOrEmpty(type))
            {
                if (type == "1")
                {
                    this.QQPostBackEvent();

                }
                else if (type == "2")
                {
                    this.SinaPostBackEvent();

                }
            }
        }
        private void QQPostBackEvent()
        {
            string str = ConfigurationManager.AppSettings.Get("QQreturnUrl");
            string str2 = ConfigurationManager.AppSettings.Get("QQappid");
            string url = string.Format("https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id={0}&redirect_uri={1}", str2, str);
            HttpContext.Current.Response.Redirect(url);
        }
        private void SinaPostBackEvent()
        {
            string str = ConfigurationManager.AppSettings.Get("SinareturnUrl");
            string str2 = ConfigurationManager.AppSettings.Get("Sinaappid");
            string url = string.Format("https://api.weibo.com/oauth2/authorize?client_id={0}&response_type=code&redirect_uri={1}", str2, str);
            HttpContext.Current.Response.Redirect(url);
        }
        public void login_Click(object sender, EventArgs e)
        {
            TB_MC_User tmu = new TB_MC_User();
            tmu.LoginName = txt_name.Value.ToString().Trim();
            string GetPwd = Util.EncryptPassword(txt_password.Value.ToString().Trim().ToUpper(), "md5");
            tmu.UserPwd = GetPwd;
            int k = tmu.CheckLoginInfo();
后面还有 39 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。