|
|
|
@ -63,7 +63,11 @@ namespace BWP.B3WeChat.Utils |
|
|
|
{ |
|
|
|
WebClient client = new WebClient(); |
|
|
|
var data = client.DownloadData(url); |
|
|
|
return Encoding.UTF8.GetString(data); |
|
|
|
var result = Encoding.UTF8.GetString(data); |
|
|
|
|
|
|
|
jsonHelper.Deserialize<WeChatResponseBase>(result).CheckError(); |
|
|
|
|
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
static T PostRequest<T>(string url, string json) where T : WeChatResponseBase |
|
|
|
|