Web/Alipay/iosnotify.aspx.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;
using System.Xml;

using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;
using Com.Alipay;
using WMPT.WebCommon;

/// <summary>
/// 支付宝,支付成功后,更新支付状态,金额
/// </summary>
public partial class Alipayresult : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        SortedDictionary<string, string> sPara = GetRequestPost();

        if (sPara.Count > 0)//判断是否有带返回参数
        {

            #region 测试 2015-11-25 
            //string sp = "";
            //foreach (var item in sPara)
            //{
            //    sp += "key=" + item.Key + " value=" + item.Value;
            //}
            //WMPT.AppLog.AppLog.Info("sPara:" + sp);
            //WMPT.AppLog.AppLog.Info("notify_id=" + Request.Form["notify_id"] + "  sign=" + Request.Form["sign"]);
            //WMPT.AppLog.AppLog.Info("out_trade_no=" + Request.Form["out_trade_no"] + "  trade_no=" + Request.Form["trade_no"]);
            //WMPT.AppLog.AppLog.Info("trade_status=" + Request.Form["trade_status"] + "  total_fee=" + Request.Form["total_fee"]); 
            #endregion

            Notify aliNotify = new Notify();
            bool verifyResult = aliNotify.Verify(sPara, Request.Form["notify_id"], Request.Form["sign"]);
            if (verifyResult)//验证成功
            {

                //商户订单号
                string out_trade_no = Request.Form["out_trade_no"];

                //支付宝交易号
                string trade_no = Request.Form["trade_no"];

                //交易状态
                string trade_status = Request.Form["trade_status"];
                string strPrice = Request.Form["total_fee"];     //金额

                WMPT.AppLog.AppLog.Info("app支付里面日志订单编号:" + trade_no);


                if (Request.Form["trade_status"] == "TRADE_FINISHED")
                {
                    Pay(out_trade_no, strPrice);
后面还有 64 行代码,购买后查看完整代码

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

AI 解读 AI

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

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