This commit is contained in:
2024-06-04 14:04:00 +08:00
9 changed files with 107 additions and 118 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");
}