Messager.cs 609 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace iNethinkCMS.Helper
  5. {
  6. public class Messager
  7. {
  8. public static string Send(string tel, string content)
  9. {
  10. DateTime Now = DateTime.Now;
  11. string time = Now.ToString("yyyy-MM-dd hh:mm:ss");
  12. string t = Now.ToString("yyyyMMddhhmmss");
  13. string url = $"http://liyafangzhou.eicp.net:8600/webService/SendSmsMessage?account=681990&password=2015lwth@1234&phone={tel}&content={content}&time={time}&t={t}";
  14. return Common.HttpWebRequestGET(url);
  15. }
  16. }
  17. }