WebUI/Api/payment/alipay/index.aspx.cs

(开头部分) 7KB

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

using Com.Alipay;
using Common;
using HModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;

namespace WebUI.Api.payment.alipay
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ////////////////////////////////////////////请求参数////////////////////////////////////////////


            //读取站点配置信息
            Model.siteconfig siteConfig = new BLL.siteconfig().loadConfig();



            if (Request.QueryString["oid"] != null)
            {

                string oid = Request.QueryString["oid"].ToString();

                ek_orders order = Bll.Bll_ek_orders.GetEntityById(oid);
                if (order != null)
                {

                    //获得订单信息
                    string order_type = order.payment_id == 1 ? "充值积分" : "普通订单";
                    string order_no =  oid;
                    decimal order_amount = decimal.Parse(order.order_amount.ToString());
                    string user_name = order.user_name;
                    string _subject = order.user_name;

                    if (order_type == "" || order_no == "" || order_amount == 0 || user_name == "")
                    {
                        Response.Redirect(siteConfig.webpath + "error.aspx?msg=" + Utils.UrlEncode("对不起,您提交的参数有误!"));
                        return;
                    }

                    //读取XML配置信息
                    string fullPath = Utils.GetMapPath("~/xmlconfig/alipay.config");
                    XmlDocument doc = new XmlDocument();
                    doc.Load(fullPath);
                    XmlNode _partner = doc.SelectSingleNode(@"Root/partner");
                    XmlNode _key = doc.SelectSingleNode(@"Root/key");
                    XmlNode _seller_email = doc.SelectSingleNode(@"Root/seller_email");
                    XmlNode _return_url = doc.SelectSingleNode(@"Root/return_url");
                    XmlNode _notify_url = doc.SelectSingleNode(@"Root/notify_url");

                    //支付类型
                    string payment_type = "1";
                    //必填,不能修改
后面还有 101 行代码,购买后查看完整代码

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

AI 解读 AI

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

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