TZ.Web/alipay/alipaypc/default.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Xml;
using TZ.Common;
public partial class alipay_alipaypc_default : System.Web.UI.Page
{
protected string _order_no;
protected string _order_amount;
protected TZ.BLL.Orders bll = new TZ.BLL.Orders();
protected void Page_Load(object sender, EventArgs e)
{
_order_no = Utils.GetCookie("OrderNo");
if (!string.IsNullOrEmpty(_order_no))
{
TZ.Model.Orders order = bll.GetModel(_order_no);
_order_amount = order.Payable_amount.ToString();
if (order != null && order.Payable_amount > 0)
{
//把请求参数打包成数组
SortedDictionary<string, string> sParaTemp = new SortedDictionary<string, string>();
sParaTemp.Add("service", AlipayConfig.service);
sParaTemp.Add("partner", AlipayConfig.partner);
sParaTemp.Add("seller_id", AlipayConfig.seller_id);
sParaTemp.Add("_input_charset", AlipayConfig.input_charset.ToLower());
sParaTemp.Add("payment_type", AlipayConfig.payment_type);
sParaTemp.Add("notify_url", AlipayConfig.notify_url);
sParaTemp.Add("return_url", AlipayConfig.return_url);
sParaTemp.Add("anti_phishing_key", AlipayConfig.anti_phishing_key);
sParaTemp.Add("exter_invoke_ip", AlipayConfig.exter_invoke_ip);
sParaTemp.Add("out_trade_no", order.Order_no);
sParaTemp.Add("subject", "订单编号:" + order.Order_no);
sParaTemp.Add("total_fee", _order_amount);
sParaTemp.Add("body", "");
//其他业务参数根据在线开发文档,添加参数.文档地址:https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.O9yorI&treeId=62&articleId=103740&docType=1
//如sParaTemp.Add("参数名","参数值");
//建立请求
string sHtmlText = AlipaySubmit.BuildRequest(sParaTemp, "get", "确认");
Response.Write(sHtmlText);
}
else
{
Response.Write("订单参数有误!");
}
}
else
{
后面还有 4 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
