Test.aspx.cs 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. using LYFZ.Weixin.SDK;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.UI;
  7. using System.Web.UI.WebControls;
  8. namespace LYFZ.WeixinServers.WeiXinAPP
  9. {
  10. public partial class Test : System.Web.UI.Page
  11. {
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. /* string timestamp = DateTime.Now.ToString("yyyyMMddhhmmss");// yyyyMMddhhmmss
  15. string nonce = LYFZ.WinAPI.CustomPublicMethod.GetSpecifyLengthRandomString();
  16. string signature = BasicAPI.GetSignature(timestamp, nonce, "lyfz.net");
  17. string url = "http://wx.lyfz.net/WeiXinAPP/PostInfo.aspx?signature=" + signature + "&timestamp=" + timestamp + "&nonce=" + nonce;
  18. string JMGDomainName = "20151008452260.lyfz.com";
  19. string ShellDomainName = "lijiafz.vicp.net";
  20. string IPAddress = LYFZ.WinAPI.CustomPublicMethod.GetNetIP("http://wx.lyfz.net/WeiXinAPP/NetIPInterface.aspx");
  21. int PortNumber =8082;
  22. int UseType = 1;
  23. string CompanyName = System.Web.HttpUtility.UrlEncode("利亚方舟研发部测试帐号");
  24. string postData = "JMGDomainName=" + JMGDomainName + "&ShellDomainName=" + ShellDomainName + "&IPAddress=" + IPAddress + "&PortNumber=" + PortNumber + "&UseType=" + UseType + "&CompanyName=" + CompanyName;
  25. string retMsg= LYFZ.WinAPI.CustomPublicMethod.HttpWebRequestPOST(url, postData);*/
  26. }
  27. }
  28. }