56 lines
1.7 KiB
C#
56 lines
1.7 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Configuration;
|
|
using System.Web;
|
|
using System.Net;
|
|
using System.IO;
|
|
using System.Security.Cryptography;
|
|
using System.Xml;
|
|
using System.Collections.Specialized;
|
|
using System.Text.RegularExpressions;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Globalization;
|
|
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 Newtonsoft.Json;
|
|
namespace Mtxfw.shop
|
|
{
|
|
public partial class Pay : System.Web.UI.Page
|
|
{
|
|
/// <summary>
|
|
/// 填写你申请的登录资料
|
|
/// </summary>
|
|
public Mtxfw.Utility.Config config = new Mtxfw.Utility.Config();
|
|
public Mtxfw.DAL.user_info daoUser = new Mtxfw.DAL.user_info();
|
|
public Mtxfw.DAL.P_Product daoProduct = new Mtxfw.DAL.P_Product();
|
|
public string strPID = "", strCID="";
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
if (!IsPostBack)
|
|
{
|
|
Page.Title = "付款测试通道 - " + config.webName;
|
|
Page.MetaDescription = "付款测试通道 - " + config.webName;
|
|
Page.MetaKeywords = "付款测试通道," + config.webName;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
protected string getsj(string dt)
|
|
{
|
|
TimeSpan ts1 = new TimeSpan(Convert.ToDateTime(dt).AddDays(7).Ticks);
|
|
TimeSpan ts2 = new TimeSpan(DateTime.Now.Ticks);
|
|
TimeSpan ts = ts1.Subtract(ts2).Duration();
|
|
|
|
string SJC = (ts.Days * 24 * 3600 + ts.Hours * 3600 + ts.Minutes * 60 + ts.Seconds).ToString();
|
|
return SJC;
|
|
}
|
|
|
|
}
|
|
} |