Web/IndexPage/alipay.aspx.cs

(开头部分) 6KB

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

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class IndexPage_alipay : System.Web.UI.Page
{
    string cName, toName, toAdd, zipCode, toTel,Info, sign,str;
    double price;
    int id;
    Model.tab_orders modelTab = new Model.tab_orders();
    Bll.OrdersBll Bo = new Bll.OrdersBll();
    Bll.OrderDetBLL Odb = new Bll.OrderDetBLL();
    Model.tab_orderDets moOdb = new Model.tab_orderDets();
    Bll.ProductBll ProB = new Bll.ProductBll();
    ShopingCar pc = new ShopingCar();
    protected void Page_Load(object sender, EventArgs e)
    {
        //try
        //{
        Response.Expires = 0;
        Response.CacheControl = "no-cache";
        if (!IsPostBack)
        {
            if (Request.ServerVariables["REQUEST_METHOD"].ToString() == "POST")
            {
                price = Convert.ToDouble(Request.Form["price"].ToString());
               ViewState["cname"]= cName = Request.Form["cname"].ToString();//客户账号
               ViewState["toName"] = toName = Request.Form["toname"].ToString();//收货人名字
               ViewState["toAdd"] = toAdd = Request.Form["toadd"].ToString();//收货人地址
               ViewState["zipCode"] = zipCode = Request.Form["zipcode"].ToString();//邮政编码
               ViewState["toTel"] = toTel = Request.Form["totel"].ToString();//接收人电话
               ViewState["Info"] = Info = Request.Form["Info"].ToString();
               ViewState["str"]=str = Request.Form["str"].ToString();
               ViewState["id"] = id =Convert.ToInt32(Request.Form["id"].ToString());//订单人的ID
              
                sign = Request.Form["sign"].ToString();
                string signx = AliPay.GetMD5(price.ToString() + cName + toName + toAdd + zipCode + toTel+Info+id+str, "utf-8");
                if (signx == sign)
                {
                    this.TextBox1.Text = price.ToString();
                }
            }
            else
            {
 
            }
        }
            //else
            //{
            //    //Response.Redirect("~/Error/Error.aspx?info=试图非法修改");
            //}
        //}
        //catch
后面还有 92 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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