Web/App/Android/Deliver/ApplyDeliver.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 System.Configuration;

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

/// <summary>
/// 骑士用户申请(注册)
/// </summary>
public partial class APP_Android_deliver_ApplyDeliver : APIPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();

        string state = "1";
        string msg = "";


        //输入参数:姓名、电话 、用户名、密码
        string name = WebUtility.InputText(Request["name"]);  //姓名
        string tel = WebUtility.InputText(Request["tel"]);
        string username = WebUtility.InputText(Request["username"]);  //会员名
        string password = WebUtility.InputText(Request["password"]);
        int cid = HjNetHelper.GetPostParam("cid", 0);

        if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(tel) || string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password) || cid == 0)
        {
            Response.Write("{\"userid\":\"0\",\"state\":\"-3\",\"msg\":\"姓名、电话、会员名、密码和城市ID为必填项\"}");
            Response.End();
        }

        Deliver userBLL = new Deliver();
        DeliverInfo info = new DeliverInfo();

        string sql = "UserName = '" + username + "'";
        int count = userBLL.GetCount(sql);
        if (count > 0)
        {
            Response.Write("{\"userid\":\"0\",\"state\":\"-2\",\"msg\":\"该用户名已存在\"}");
            Response.End();
        }

        info.CodeId = "";
        info.Name = name;
        info.UserName = username;
        info.Password = WebUtility.GetMd5(password);
        info.Phone = tel;
        info.Inve1 = cid; //城市编号
        info.Section = "0";
        info.Status = 0;
        info.GpsIMEI = "0";
        info.Inve2 = "";
后面还有 20 行代码,购买后查看完整代码

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

AI 解读 AI

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

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