EasyShop/Pay/zfbjust/PayZfb.aspx.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using Com.Alipay;
using System.Linq;
using System.Security.Policy;
using EasyShop;
using MyModels;
namespace EasyShop.zfb
{
/// <summary>
/// 功能:即时到帐接口接入页
/// 版本:3.2
/// 日期:2011-03-11
/// 说明:
/// 以下代码只是为了方便商户测试而提供的样例代码,商户可以根据自己网站的需要,按照技术文档编写,并非一定要使用该代码。
/// 该代码仅供学习和研究支付宝接口使用,只是提供一个参考。
///
/// /////////////////注意///////////////////////////////////////////////////////////////
/// 如果您在接口集成过程中遇到问题,可以按照下面的途径来解决
/// 1、商户服务中心(https://b.alipay.com/support/helperApply.htm?action=consultationApply),提交申请集成协助,我们会有专业的技术工程师主动联系您协助解决
/// 2、商户帮助中心(http://help.alipay.com/support/232511-16307/0-16307.htm?sh=Y&info_type=9)
/// 3、支付宝论坛(http://club.alipay.com/read-htm-tid-8681712.html)
/// </summary>
public partial class PayZfb :Base_Page
{
protected decimal sumAllPrice = 0M;
protected void Page_Load(object sender, EventArgs e)
{
lb_Subject.Text = "易游商城"+DateTime.Now.ToString("yyyy-MM-dd") + "下单";
TB_MC_Order tmo = new TB_MC_Order();
string OrderID = Common.GetMes.GetRequestQuery(Request, "order_id");
string uid = MyModels.Global.DeCryStr(Login_UserId);
MyModels.TB_MC_Order to = new MyModels.TB_MC_Order();
MyModels.Db.TB_MC_Order order = to.IsMyOrder(uid, int.Parse(OrderID.ToString().Trim()));
if (order == null) return;
if (to.My_Order_More != null && to.My_Order_More.Count > 0)
sumAllPrice = to.My_Order_More.Sum(i => (int)i.tp == 3 ? 0 : ((decimal)i.Price * (int)i.Count));
if (order.UseTicketEndPrice.HasValue && !string.IsNullOrWhiteSpace(order.ST_ID))
{
sumAllPrice = order.UseTicketEndPrice.Value +
(order.TransportPrice.HasValue ? order.TransportPrice.Value : 0M);
}
lb_fee.Text = sumAllPrice.ToString();
//TxtTotal_fee.Text = "0.01";
//if(!string.IsNullOrEmpty(OrderID))
//{
// tmo.Id=int.Parse(OrderID);
// DataSet ds = tmo.GetListByID();
// int num = ds.Tables[0].Rows.Count;
// for (int i = 0; i < num; i++)
后面还有 127 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。