BookShop.Web/Pay.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CTL.Common;
namespace BookShop.Web
{
public partial class Pay : System.Web.UI.Page
{
private int orderId = 0;
/// <summary>
/// 页面加载事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
orderId = Utils.StrToInt(Requests.Query("orderid"));
if (!IsPostBack)
{
string action = Requests.Query("action");
if (action == "pay")
{
PlaceHolder1.Visible = true;
}
else if (action == "payed")
{
PlaceHolder2.Visible = true;
}
else { }
Model.Order orderInfo = OrderBLL.GetOrderInfo(orderId);
if (orderInfo != null)
{
txtOrderNo.Text = orderInfo.OrderNo;
}
else
{
WebUtility.Alert("系统错误", "Index.aspx");
}
}
}
/// <summary>
/// 订单付款
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void subitBtn_Click(object sender, EventArgs e)
{
string code = txtCode.Value.Trim();
if (Utils.GetSession("CheckCode").ToString() != code)
{
WebUtility.Alert("验证码错误啦!");
后面还有 18 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。