protected void Page_Load(object sender, EventArgs e) { PbProject.Logic.Pay.ChinaPnr chinaPnr = new PbProject.Logic.Pay.ChinaPnr(); string result = getParameter("txt"); if (!string.IsNullOrEmpty(result)) { string val = chinaPnr.Sign(result, result); Response.Write(val); } else { Response.Write("参数不能为空!"); } }
/// <summary> /// 加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { string val = ""; try { if (!IsPostBack) { if (Request.QueryString["user"] != null && Request.QueryString["oper"] != null) { PbProject.Logic.Pay.ChinaPnr chinaPnr = new PbProject.Logic.Pay.ChinaPnr(); val = chinaPnr.Sign(Request.QueryString["user"].ToString().Trim(), Request.QueryString["oper"].ToString().Trim()); } } } catch (Exception ex) { } val = !string.IsNullOrEmpty(val) ? val : "请求失败"; Response.Write(val); }