Exemple #1
0
        /// <summary>
        ///     获取请求JSON
        /// </summary>
        /// <param name="url">请求地址</param>
        /// <returns>JSON字符串</returns>
        private string Get(string url)
        {
            Logger.LogFormat(LoggerLevels.Trace, "pre Get{1}url:{0}", url, Environment.NewLine);
            var wr     = new WeChatApiWebRequestHelper();
            var result = wr.HttpGet(url);

            Logger.LogFormat(LoggerLevels.Trace, "Get success {2}url:{0}{2}result:{1}", url, result,
                             Environment.NewLine);
            return(result);
        }