protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Request.ContentEncoding = System.Text.Encoding.GetEncoding(QuickPayConf.charset);
            String[] resArr = new String[QuickPayConf.notifyVo.Length];
            for (int i = 0; i < QuickPayConf.notifyVo.Length; i++)
            {
                resArr[i] = Request.Params[QuickPayConf.notifyVo[i]];
            }
            String signature  = Request.Params[QuickPayConf.signature];
            String signMethod = Request.Params[QuickPayConf.signMethod];

            Response.ContentType     = "text/html;charset=" + QuickPayConf.charset;
            Response.ContentEncoding = System.Text.Encoding.GetEncoding(QuickPayConf.charset);

            try
            {
                bool          signatureCheck = new QuickPayUtils().checkSign(resArr, signMethod, signature);
                StringBuilder sb             = new StringBuilder();
                //sb.Append("签名是否正确:" + signatureCheck);
                bool success = resArr[10] == "00";
                if (success)
                {
                    string moneyz = resArr[13];

                    lab_OrderNo.Text = resArr[8];                                       //资源交易号
                    lab_Point.Text   = Convert.ToString(Convert.ToInt32(moneyz) / 100); //实际支付金额
                    lab_aliNo.Text   = resArr[9];                                       //外部交易号

                    //先充值 后消费
                    string loginname = this.Page.User.Identity.Name;

                    ////业务逻辑处理

                    Tz888.BLL.Pay1.PayOrder bbl = new Tz888.BLL.Pay1.PayOrder();
                    bbl.PaySuccessQuick(resArr[8], loginname, Convert.ToString(Convert.ToInt32(6000) / 100));
                    bbl.AddLmOrder(resArr[8], loginname, Convert.ToString(Convert.ToInt32(resArr[13]) / 100), "1");
                }

                else
                {
                    sb.Append("<br>失败原因:" + resArr[11]);
                    Response.Write(sb.ToString());
                }
                Response.Write(sb.ToString());
            }
            catch (Exception) { }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Request.ContentEncoding = System.Text.Encoding.GetEncoding(QuickPayConf.charset);
            String[] resArr = new String[QuickPayConf.notifyVo.Length];
            for (int i = 0; i < QuickPayConf.notifyVo.Length; i++)
            {
                resArr[i] = Request.Params[QuickPayConf.notifyVo[i]];
            }
            String signature  = Request.Params[QuickPayConf.signature];
            String signMethod = Request.Params[QuickPayConf.signMethod];

            Response.ContentType     = "text/html;charset=" + QuickPayConf.charset;
            Response.ContentEncoding = System.Text.Encoding.GetEncoding(QuickPayConf.charset);

            try
            {
                bool          signatureCheck = new QuickPayUtils().checkSign(resArr, signMethod, signature);
                StringBuilder sb             = new StringBuilder();
                //sb.Append("签名是否正确:" + signatureCheck);
                bool success = resArr[10] == "00";
                if (success)
                {
                    string moneyz = resArr[13];

                    lab_OrderNo.Text = resArr[8];                                       //资源交易号
                    lab_Point.Text   = Convert.ToString(Convert.ToInt32(moneyz) / 100); //实际支付金额
                    lab_aliNo.Text   = resArr[9];                                       //外部交易号

                    //先充值 后消费
                    string loginname = this.Page.User.Identity.Name;

                    ////业务逻辑处理

                    Tz888.BLL.Pay1.PayOrder bbl = new Tz888.BLL.Pay1.PayOrder();
                    bool quick = bbl.PaySuccessQuick(resArr[8], loginname, Convert.ToString(Convert.ToInt32(resArr[13]) / 100));
                    if (quick)
                    {
                        bool           lm     = bbl.AddLmOrder(resArr[8], loginname, Convert.ToString(Convert.ToInt32(resArr[13]) / 100), "1");
                        Tz888.BLL.Conn dal    = new Tz888.BLL.Conn();
                        DataTable      dt     = new DataTable();
                        DataTable      dttype = new DataTable();


                        dt = dal.GetList("ConsumeRecviw", "*", "ID", 1, 1, 0, 1, "OrderNo=" + resArr[8].ToString().Trim() + "");
                        if (dt.Rows.Count > 0)
                        {
                            lblTitle.Text     = "<a target='_blank' href='" + DomainName.SiteDomain() + "/" + dt.Rows[0]["htmlfile"].ToString() + "'>" + dt.Rows[0]["SourceType"].ToString() + "</a>";
                            lblOrderDate.Text = dt.Rows[0]["ConsumeTime"].ToString();

                            lblStatus.Text  = "已付款";
                            lblPayType.Text = Tz888.Common.Common.GetPayType(dt.Rows[0]["payType"].ToString());
                        }
                    }
                }

                else
                {
                    sb.Append("<br>失败原因:" + resArr[11]);
                    Response.Write(sb.ToString());
                }
                Response.Write(sb.ToString());
            }
            catch (Exception) { }
        }
    }