public string Send2(SendType type, string url = "") { switch (type) { case SendType.Get: return(MessageMethod.doGetRequest(GetFullURL2(url))); //GetFullURL2拼成了get方式的发送短信的请求 case SendType.Post: return(MessageMethod.doPostRequest(GetURL(), GetData())); default: return(string.Empty); } }
public string Send(SendType type) { switch (type) { case SendType.Get: return(MessageMethod.doGetRequest(GetFullURL())); case SendType.Post: return(MessageMethod.doPostRequest(GetURL(), GetData())); default: return(string.Empty); } }