52 lines
1.6 KiB
C#
52 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.Script.Serialization;
|
|
using System.Text;
|
|
namespace Mtxfw.shop
|
|
{
|
|
public partial class payDefault : System.Web.UI.Page
|
|
{
|
|
protected string wx_packageValue = "";
|
|
public Mtxfw.Utility.Config config = new Mtxfw.Utility.Config("");
|
|
public Mtxfw.DAL.user_info daoUser = new Mtxfw.DAL.user_info();
|
|
public string PayID = "", IFApp = "0";
|
|
Mtxfw.DAL.user_Results daoResults = new Mtxfw.DAL.user_Results();
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
string str_u = Request.ServerVariables["HTTP_USER_AGENT"].Trim().ToLower();
|
|
if (str_u.IndexOf("micromessenger") != -1)
|
|
{
|
|
IFApp = "1";
|
|
}
|
|
if (!String.IsNullOrEmpty(Request.QueryString["PayID"]))
|
|
{
|
|
PayID = Request.QueryString["PayID"].ToString();
|
|
Mtxfw.Model.user_Results ReModel = daoResults.GetModel2(2,PayID);
|
|
if (ReModel != null)
|
|
{
|
|
|
|
if (!IsPostBack)
|
|
{
|
|
|
|
try
|
|
{
|
|
paybill.Text = ReModel.Totalmoney.ToString("f2");
|
|
}
|
|
catch (Exception err)
|
|
{
|
|
Mtxfw.Utility.Common.WriteHtml("/weixin/weixin0.txt", err.ToString());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
} |