|
@@ -107,9 +107,9 @@ namespace Hotline.YbEnterprise.Sdk
|
|
|
res = (EnterpriseServiceResponse)JsonConvert.DeserializeObject(strResult)!;
|
|
|
}
|
|
|
if (res is null)
|
|
|
- throw new UserFriendlyException("获取token请求失败 authorization:" + authorization + " ,path:" + path + " , res:" + res.ToString());
|
|
|
+ throw new UserFriendlyException("获取token请求失败 authorization:" + authorization + " ,path:" + path + " , res:" + strResult);
|
|
|
if (!res.success)
|
|
|
- throw new UserFriendlyException("获取token请求失败 authorization:" + authorization + " ,path:" + path + " , res:" + System.Text.Json.JsonSerializer.Serialize(res));
|
|
|
+ throw new UserFriendlyException("获取token请求失败 authorization2:" + authorization + " ,path:" + path + " , res:" + System.Text.Json.JsonSerializer.Serialize(res));
|
|
|
return res.data;
|
|
|
}
|
|
|
public async Task<TResponse> ExecuteAsync<TRequest, TResponse>(string path, Method httpMethod, TRequest request, RestRequest restRequest = null,
|