Web/App/Android/setpaypwd.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 System.Text;

using WMPT.Model;
using WMPT.Common;
using WMPT.SQLServerDAL;

/// <summary>
/// 设置支付密码
/// </summary>
public partial class APP_Android_SaveUserInfo_androisetpaypwdd : APIPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();

        string rs = "{\"userid\":\"" + 0 + "\",\"state\":\"" + 0 + "\"}";

        ECustomer dal = new ECustomer();
        //会员编号
        string userid = HjNetHelper.GetPostParam("userid");
        //新密码
        string newpwd = HjNetHelper.GetPostParam("newpassword");
        //旧密码
        string oldpwd = HjNetHelper.GetPostParam("oldpassword");
        string sql = " ";

        ECustomerInfo info = new ECustomerInfo();
        info = dal.GetModel(Convert.ToInt32(userid));
        if (oldpwd == "")
        {
            if (info.PayPassword == "")
            {
                sql = "update ecustomer set PayPassword = '" + WebUtility.GetMd5(newpwd) + "' where dataid = " + userid;
                WebUtility.excutesql(sql);
                rs = "{\"userid\":\"" + userid + "\",\"state\":\"" + 1 + "\"}";
            }
            else
            {
                rs = "{\"userid\":\"" + userid + "\",\"state\":\"" + -1 + "\"}";
            }
        }
        else
        {
            if (WebUtility.GetMd5(oldpwd) == info.PayPassword)
            {
                sql = "update ecustomer set PayPassword = '" + WebUtility.GetMd5(newpwd) + "' where dataid = " + userid;
                WebUtility.excutesql(sql);
                rs = "{\"userid\":\"" + userid + "\",\"state\":\"" + 1 + "\"}";
            }
            else
            {
                rs = "{\"userid\":\"" + userid + "\",\"state\":\"" + -1 + "\"}";
            }
        }
后面还有 4 行代码,购买后查看完整代码

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

AI 解读 AI

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

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