⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 updingdan.aspx

📁 N-SAV网盘系统服务端 配置要求 服务端要求 硬件要求: 独立服务器
💻 ASPX
字号:
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    publicclass class1 = new publicclass();
    public string reg_userid = "";//收款ID
    public string amount="100";//金额
    public string ymd = DateTime.Now.ToString("yyyyMMdd");//定单日期
    public string receive_url = null; //返回页面
    public string billno = DateTime.Now.ToString("yyyyMMddHHmmssfff");//订单编号
    public string payvia = "1,5";//支付方式
    public string paykey ="";//收款ID密钥
    public string post_md5info = null;//MD5码
    protected void Page_Load(object sender, EventArgs e)
    {
        class1.input_check();
        reg_userid =class1.reg_userid.Trim();
        paykey=class1.paykey.Trim();
        rf();
        Encoding gb2312 = Encoding.GetEncoding("gb2312");
        Response.ContentEncoding = gb2312;
        receive_url = class1.up + "downdingdan.aspx";
        string md5text = reg_userid + amount + ymd + receive_url + billno + payvia + paykey;
        post_md5info= System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(md5text, "MD5");
        if (post_md5info == null)
        {
            Response.Clear();
            Response.Write("定单生成错误");
            Response.End(); 
        }
        post_md5info = post_md5info.ToUpper().Trim();
    }
    publicclass.mycookie myc1 = new publicclass.mycookie();
    protected void rf()
    {
        userid.Text = myc1.value("userid").ToString().Trim();
        if (userid.Text == "")
        {
            Response.Clear();
            Response.Write("用户信息不正确,可能要得新登陆");
            Response.End();
        }
        publicclass.mysql mysql1 = new publicclass.mysql(class1.zhong);
        System.Data.SqlClient.SqlDataReader rs = mysql1.setcommand("select * from [item] where number='" + Request.QueryString["number"] + "'");
        if (rs.Read())
        {
            item_xiaoguo.Text = rs.GetValue(2).ToString().Trim() + rs.GetValue(3).ToString().Trim() + "MB<br />";
            item_jiage.Text = rs.GetValue(4).ToString().Trim() + "元";
            amount = (int.Parse(rs.GetValue(4).ToString().Trim()) * 100).ToString().Trim();
            item_youxiaoqi.Text = rs.GetValue(5).ToString().Trim() + "天";
            mysql1.setcommand("[buy_item] '" + billno + "','" + userid.Text + "','" + rs.GetValue(2).ToString().Trim() + "','" + rs.GetValue(3).ToString().Trim() + "'," + rs.GetValue(5).ToString().Trim());
        }
        else
        {
            Response.Clear();
            Response.Write("无法获得所购买的道具信息");
            Response.End(); 
        }
        mysql1.close();
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>交易提交</title>
</head>
<body style=" text-align : center">
  <form id="dingdan" method="get" action="http://pay.168reg.cn/pay.do" style=" display : none">
     <input type="hidden" name="reg_userid" value="<% Response.Write(reg_userid); %>"/>
     <input type="hidden" name="servicename" value="购买n-save道具"/>
     <input type="hidden" name="amount" value="<% Response.Write(amount); %>"/>
     <input type="hidden" name="ymd" value="<% Response.Write(ymd); %>"/>
     <input type="hidden" name="receive_url" value="<% Response.Write(receive_url); %>"/>
     <input type="hidden" name="billno" value="<% Response.Write(billno); %>"/>
     <input type="hidden" name="payvia" value="<% Response.Write(payvia); %>" />
     <input type="hidden" name="post_md5info" value="<% Response.Write(post_md5info); %>" />
   </form>
   <div style=" font-size : 16px ; color :#6b6b6b ; width : 100% ; text-align : left">定单信息</div>
   <div style="border-right: #e9e9e9 thin solid; border-top: #e9e9e9 thin solid; border-left: #e9e9e9 thin solid; border-bottom: #e9e9e9 thin solid"></div>
   <table border="0" cellpadding="0" cellspacing="0">
     <tr><td style="text-align : right">定单编号:</td><td style=" text-align : left"><% Response.Write(billno); %></td></tr>
     <tr><td style="text-align : right">用户名:</td><td style=" text-align : left"><asp:Label ID="userid" runat="server" Text="Label"></asp:Label></td></tr>
     <tr><td style="text-align : right">效果:</td><td style=" text-align : left"><asp:Label ID="item_xiaoguo" runat="server" Text="Label"></asp:Label></td></tr>
     <tr><td style="text-align : right">价格:</td><td style=" text-align : left"><asp:Label ID="item_jiage" runat="server" Text="Label"></asp:Label></td></tr>
     <tr><td style="text-align : right">有效期:</td><td style=" text-align : left"><asp:Label ID="item_youxiaoqi" runat="server" Text="Label"></asp:Label></td></tr>
   </table>
    <input id="Button1" type="button" value="付款" onclick="dingdan.submit();" />
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -