WebUI/Api/payment/alipayOld/index.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;
using API.Payment.Alipay;
using HModel;
using System.Data;
namespace WebUI.api.payment.alipay
{
public partial class index :System.Web.UI.Page // UserBase
{
// <!--<rewrite name="alipayIndex" path="/api/payment/alipay/index_{0}.aspx" pattern="api/payment/alipay/index_(\d+).aspx" page="index.aspx" templet="payindex.html" channel="2" type="payindex" inherit="WebUI.api.payment.alipay.index" />
//<rewrite name="return_url" path="api/payment/alipay/return_url.aspx" pattern="api/payment/alipay/(\w+).aspx" page="return_url.aspx" templet="return_url.html" channel="2" type="return_url" inherit="WebUI.api.payment.alipay.return_url" />
//<rewrite name="notify_url" path="api/payment/alipay/notify_url.aspx" pattern="api/payment/alipay/(\w+).aspx" page="notify_url.aspx" templet="notify_url.html" channel="2" type="notify_url" inherit="WebUI.api.payment.alipay.notify_url" />-->
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.real_amount.ToString());
string user_name = order.accept_name;
string subject = order.accept_name;
if (order_type == "" || order_no == "" || order_amount == 0 || user_name == "")
{
Response.Redirect(siteConfig.webpath + "error.aspx?msg=" + Utils.UrlEncode("对不起,您提交的参数有误!"));
return;
}
////////////////////////////////////////////请求参数////////////////////////////////////////////
//必填参数//
//请与贵网站订单系统中的唯一订单号匹配
string out_trade_no = order_no;
//订单名称,显示在支付宝收银台里的“商品名称”里,显示在支付宝的交易管理的“商品名称”的列表里。
后面还有 93 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。