Web/admin/RefundGroupOrder.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Seven.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Web.admin
{
public partial class RefundGroupOrder : ManageBasePage
{
BLL.groupbuy_order orderbll = new BLL.groupbuy_order();
BLL.groupbuy_order_detail bll = new BLL.groupbuy_order_detail();
int CurPage = 1;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
MODEL.session_manage managemodel = new MODEL.session_manage();
managemodel = System.Web.HttpContext.Current.Session[ManageBasePage.Session_Manage] as MODEL.session_manage;
if (managemodel == null)
{
Response.Redirect("~/admin/Login.aspx");
}
else
{
if (managemodel.classid == 1)
{ }
else
{
Response.Redirect("~/admin/main.aspx");
}
}
string action = Request["action"];
if (action == "refund")
{
string strID = Request["id"];
MODEL.groupbuy_order_detail ordermodel = bll.GetModel("id=" + strID);
if (ordermodel.status_order > 1 && !string.IsNullOrEmpty(ordermodel.alipayid) && !string.IsNullOrEmpty(ordermodel.AlipayNo))
{
////////////////////////////////////////////请求参数////////////////////////////////////////////
//服务器异步通知页面路径
string notify_url = "http://商户网关地址/refund_fastpay_by_platform_pwd-CSHARP-UTF-8/notify_url.aspx";
//需http://格式的完整路径,不允许加?id=123这类自定义参数
//卖家支付宝帐户
string seller_email = ordermodel.alipayid;
//必填
//退款当天日期
string refund_date = DateTime.Now.ToString("yyyy-MM-dd hh-mm-ss");
//必填,格式:年[4位]-月[2位]-日[2位] 小时[2位 24小时制]:分[2位]:秒[2位],如:2007-10-01 13:13:13
//批次号
string batch_no = DateTime.Now.ToString("yyyyMMdd") + StringUtils.GetRandString(RandString.Number, 10);
后面还有 108 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
