Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            UnHttpClient http = new UnHttpClient("https://alipayapi.shaokaolaile.com/pay/order.ashx");
            UnAttrRst rst = http.sendMsgSyn("");

            //http.setIntTransfer(new transfer());
            //http.sendMsg("");
        }
Ejemplo n.º 2
0
 // 发短信;
 private UnAttrRst sendTclk(string pNum, string sCont, string sTime)
 {
     if (sTime == null)
     {
         sTime = DateTime.Now.ToString("yyyyMMddHHmmss");
     }
     sCont = HttpUtility.UrlEncode(sCont, Encoding.GetEncoding("GB2312"));
     string _url = _urlTclk + "/WS/Send.aspx?CorpID=" + _User + "&Pwd=" + _Pass + "&Mobile=" + pNum + "&Content=" + sCont + "&Cell=&SendTime=" + sTime;
     UnHttpClient hc = new UnHttpClient(_url);
     UnAttrRst rst = hc.sendMsgSyn("");
     return rst;
 }