Example #1
0
        private const string ReplaceUrl = "http://sdk2.entinfo.cn:8061/webservice.asmx";     //替代Url

        public static bool Send(int channel, string tell, string content)
        {
            try
            {
                string url    = "http://admin.wzlzly.com/Service/SendMessage.ashx";
                string data   = string.Format("channel={0}&tell={1}&content={2}", channel, tell, content);
                string result = WebHttpRequest.Post(url, data);
                if (result == "0")
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch
            {
                return(false);
            }
        }