WmptWap/Ajax/SendGmsCode.aspx.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using WMPT.Common;
using System.Text.RegularExpressions;
using WMPT.SQLServerDAL;

public partial class Ajax_SendGmsCode : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string phone = Request["phone"].ToString().Trim();

        Regex rx = new Regex(@"^[0-9]*$");
        if (!rx.IsMatch(phone) || phone.Length != 11)
        {
            Response.Write("0");
            Response.End();
            return;
        }

        string code = WebUtility.GetRandomOnlyNum(6);
        Session["gsmcode"] = code;
        Session.Timeout = 10;


        string fuc = Request["fuc"];
        switch (fuc)
        {
            case "auth"://手机认证,要判处有没有认证过
                {
                    if (checkphoneIsExist(phone))//如果存在
                    {
                        Response.Write(-3);
                    }
                    else
                    {
                        int rs = WMPT.WebCommon.SendMsg.SendValidCode(phone, code);
                        Response.Write(rs);
                    }
                }
                break;

            default:
                {
                    int rs = WMPT.WebCommon.SendMsg.SendValidCode(phone, code);
                    Response.Write(rs);
                }
                break;
        }

        Response.End();
    }


    /// <summary>
后面还有 12 行代码,购买后查看完整代码

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

AI 解读 AI

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

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