Web/account/ThirdpartyLogin.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;
using NetDimension.Json.Linq;
/// <summary>
/// 第三方用户名登录操作的地址
/// 到这个页面的参数:
/// uid 编号(保存openid字段)
/// uname 用户名(保存name字段)
/// utype第三方来来源(人人,QQ,新浪 )
/// </summary>
public partial class account_ThirdpartyLogin : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string uid = HjNetHelper.GetQueryString("uid");
string uname = WebUtility.UrlDecode(HjNetHelper.GetQueryString("uname"));
string utype = HjNetHelper.GetQueryString("utype");
//如果没有这个用户 openid = uid;就加一个用户,如果有,就登录
string sql = "openid = '" + uid + "' and wtype = '" + utype + "'";
ECustomer dal = new ECustomer();
int count = dal.GetCount(sql);
if (count == 0)//没用户,生成
{
ECustomerInfo model = new ECustomerInfo();
int point = Convert.ToInt32(SectionProxyData.GetSetValue(19));
//int point = 50;
model.EMAIL = ""; ;
model.Password = WebUtility.GetMd5(uid + "cxd");//加cxd只是不要让用户可以修改登录
model.RegTime = DateTime.Now;
model.IsActivate = model.Point = point;
model.Name = uname;
model.ActivateCode = WebUtility.RandStr(200);
model.GroupID = 0;
model.WebSite = "";
model.RID = "";
model.Picture = "";
model.TrueName = "";
model.MSN = "";
model.Sex = "";
model.Tell = "";
model.Phone = "";
model.QQ = "";
//model.PayPassword = "";
model.State = "0";
model.openid = uid;
model.wtype = utype;
if (dal.Add_Third(model) > 0)
{
后面还有 26 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
