DTcms.Web.UI/DTcms.Web.UI.Page/payment.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using DTcms.BLL;
using DTcms.Common;
using DTcms.Model;
using System;
using System.Web;
namespace DTcms.Web.UI.Page
{
public class payment : BasePage
{
protected string action = string.Empty;
protected string order_no = string.Empty;
protected string order_type = string.Empty;
protected decimal order_amount = 0m;
protected DTcms.Model.orderconfig orderConfig = new DTcms.BLL.orderconfig().loadConfig();
protected DTcms.Model.users userModel;
protected DTcms.Model.orders orderModel;
protected DTcms.Model.user_recharge rechargeModel;
protected DTcms.Model.payment payModel;
protected override void ShowPage()
{
base.Init += new EventHandler(this.payment_Init);
}
protected void payment_Init(object sender, EventArgs e)
{
this.action = DTRequest.GetString("action");
this.order_no = DTRequest.GetString("order_no");
if (this.order_no.ToUpper().StartsWith("R"))
{
this.order_type = DTEnums.AmountTypeEnum.Recharge.ToString().ToLower();
}
else if (this.order_no.ToUpper().StartsWith("B"))
{
this.order_type = DTEnums.AmountTypeEnum.BuyGoods.ToString().ToLower();
}
string text = this.action;
if (text != null)
{
if (!(text == "confirm"))
{
if (text == "succeed")
{
if (this.order_no.ToUpper().StartsWith("R"))
{
this.rechargeModel = new DTcms.BLL.user_recharge().GetModel(this.order_no);
if (this.rechargeModel == null)
{
HttpContext.Current.Response.Redirect(base.linkurl("error", new object[]
{
"?msg=" + Utils.UrlEncode("出错啦,订单号不存在或已删除!")
后面还有 157 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。