This commit is contained in:
jackchenyang
2024-06-03 14:52:50 +08:00
parent 5bcbc8e9af
commit d38dc202af
7 changed files with 52 additions and 113 deletions
+2 -2
View File
@@ -15,12 +15,12 @@ namespace BLL.Common
/// </summary>
/// <param name="url"></param>
/// <returns></returns>
public static string HttpGetRequest(string url)
public static string HttpGetRequest(string url, string token ="")
{
string strGetResponse = string.Empty;
try
{
var getRequest = CreateHttpRequest(url,"GET", "");
var getRequest = CreateHttpRequest(url,"GET", token);
var getResponse = getRequest.GetResponse() as HttpWebResponse;
strGetResponse = GetHttpResponse(getResponse, "GET");
}